mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-02 13:54:05 +02: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
|
# 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
|
||||||
|
echo "Creating directory \"$variable\""
|
||||||
mkdir -p "\"$variable\""
|
mkdir -p "\"$variable\""
|
||||||
chmod -R 755 "\"$variable\""
|
chmod -R 755 "\"$variable\""
|
||||||
chown -R paperless:paperless "\"$variable\""
|
chown -R paperless:paperless "\"$variable\""
|
||||||
|
|||||||
Reference in New Issue
Block a user