mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-16 01:18:19 +01:00
Update 99-run.sh
This commit is contained in:
@@ -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\""
|
||||
|
||||
Reference in New Issue
Block a user