From c3ca0c9649f4d2db6be01fafdf98243d7b11e25a Mon Sep 17 00:00:00 2001 From: "Simon L." Date: Wed, 16 Sep 2026 12:26:51 +0200 Subject: [PATCH] nextcloud-entrypoint: allow to configure NEXTCLOUD_SHARE_FOLDER Signed-off-by: Simon L. --- Containers/nextcloud/entrypoint.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Containers/nextcloud/entrypoint.sh b/Containers/nextcloud/entrypoint.sh index b95fa29f..31917f00 100644 --- a/Containers/nextcloud/entrypoint.sh +++ b/Containers/nextcloud/entrypoint.sh @@ -475,7 +475,11 @@ EOF php /var/www/html/occ config:system:set versions_retention_obligation --value="auto, 30" php /var/www/html/occ config:system:set activity_expire_days --value="30" --type=integer php /var/www/html/occ config:system:set simpleSignUpLink.shown --type=bool --value=false - php /var/www/html/occ config:system:set share_folder --value="/Shared" + if [ -z "$NEXTCLOUD_SHARE_FOLDER" ]; then + php /var/www/html/occ config:system:set share_folder --value="/Shared" + else + php /var/www/html/occ config:system:set share_folder --value="$NEXTCLOUD_SHARE_FOLDER" + fi # Install some apps by default if [ -n "$STARTUP_APPS" ]; then