mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-07-21 21:40:31 +02:00
Update 99-run.sh
This commit is contained in:
@@ -28,9 +28,9 @@ if bashio::config.has_value "PAPERLESS_EXPORT_DIR"; then export PAPERLESS_EXPORT
|
|||||||
# Create folder and permissions if needed
|
# Create folder and permissions if needed
|
||||||
chown -R paperless:paperless /config
|
chown -R paperless:paperless /config
|
||||||
for variable in "$PAPERLESS_DATA_DIR" "$PAPERLESS_MEDIA_ROOT" "$PAPERLESS_CONSUMPTION_DIR" "$PAPERLESS_EXPORT_DIR"; do
|
for variable in "$PAPERLESS_DATA_DIR" "$PAPERLESS_MEDIA_ROOT" "$PAPERLESS_CONSUMPTION_DIR" "$PAPERLESS_EXPORT_DIR"; do
|
||||||
mkdir -p "$variable"
|
mkdir -p "\"$variable\""
|
||||||
chmod -R 755 "$variable"
|
chmod -R 755 "\"$variable\""
|
||||||
chown -R paperless:paperless "$variable"
|
chown -R paperless:paperless "\"$variable\""
|
||||||
done
|
done
|
||||||
|
|
||||||
###################
|
###################
|
||||||
|
|||||||
Reference in New Issue
Block a user