Update 99-run.sh

This commit is contained in:
Alexandre
2023-11-22 17:26:51 +01:00
committed by GitHub
parent 75ab01f86a
commit 47895881ed

View File

@@ -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
###################