From 47895881ed33ba94390b61c908678df6b5b4fa9c Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Wed, 22 Nov 2023 17:26:51 +0100 Subject: [PATCH] Update 99-run.sh --- paperless_ngx/rootfs/etc/cont-init.d/99-run.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/paperless_ngx/rootfs/etc/cont-init.d/99-run.sh b/paperless_ngx/rootfs/etc/cont-init.d/99-run.sh index 8a4569dcd..782dd1c9d 100755 --- a/paperless_ngx/rootfs/etc/cont-init.d/99-run.sh +++ b/paperless_ngx/rootfs/etc/cont-init.d/99-run.sh @@ -28,9 +28,9 @@ if bashio::config.has_value "PAPERLESS_EXPORT_DIR"; then export PAPERLESS_EXPORT # Create folder and permissions if needed chown -R paperless:paperless /config for variable in "$PAPERLESS_DATA_DIR" "$PAPERLESS_MEDIA_ROOT" "$PAPERLESS_CONSUMPTION_DIR" "$PAPERLESS_EXPORT_DIR"; do - mkdir -p "$variable" - chmod -R 755 "$variable" - chown -R paperless:paperless "$variable" + mkdir -p "\"$variable\"" + chmod -R 755 "\"$variable\"" + chown -R paperless:paperless "\"$variable\"" done ###################