Update 99-run.sh

This commit is contained in:
Alexandre
2023-11-22 22:19:04 +01:00
committed by GitHub
parent fbf240e728
commit 925a53fa79

View File

@@ -28,6 +28,7 @@ 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
echo "Creating directory \"$variable\""
mkdir -p "\"$variable\""
chmod -R 755 "\"$variable\""
chown -R paperless:paperless "\"$variable\""