From 7a85c5ac302a698c57e20d5c84bbf206c226db31 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Tue, 13 Sep 2022 21:37:10 +0200 Subject: [PATCH] Update 99-run.sh --- seafile/rootfs/etc/cont-init.d/99-run.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/seafile/rootfs/etc/cont-init.d/99-run.sh b/seafile/rootfs/etc/cont-init.d/99-run.sh index 5a58dbb3f..0db929b9f 100644 --- a/seafile/rootfs/etc/cont-init.d/99-run.sh +++ b/seafile/rootfs/etc/cont-init.d/99-run.sh @@ -41,7 +41,10 @@ DATA_LOCATION=$(bashio::config 'data_location') echo "Check $DATA_LOCATION folder exists" mkdir -p "$DATA_LOCATION" -mkdir -p "$DATA_LOCATION"/media +mkdir -p /shared/media + +chmod -R 777 "$DATA_LOCATION" +chmod -R 777 "/shared" echo "Setting permissions" if bashio::config.has_value 'PUID'; then @@ -49,8 +52,6 @@ if bashio::config.has_value 'PUID'; then chown -R "$(bashio::config 'PUID'):$(bashio::config 'PGID')" /shared fi || true -chmod -R 755 "$DATA_LOCATION" - echo "Creating symlink" ln -sf "$DATA_LOCATION" /shared