From ba6efd2a9c469f4647a7daeca073016ef97b12bf Mon Sep 17 00:00:00 2001 From: Simon L Date: Sun, 5 Mar 2023 14:34:50 +0100 Subject: [PATCH] change how permission check setting works Signed-off-by: Simon L --- Containers/nextcloud/entrypoint.sh | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/Containers/nextcloud/entrypoint.sh b/Containers/nextcloud/entrypoint.sh index 3eff4e4e..a7aa6327 100644 --- a/Containers/nextcloud/entrypoint.sh +++ b/Containers/nextcloud/entrypoint.sh @@ -212,9 +212,8 @@ if ! [ -f "$NEXTCLOUD_DATA_DIR/skip.update" ]; then exit 1 fi - if [ "$SKIP_DATA_DIRECTORY_PERMISSION_CHECK" = yes ]; then - php /var/www/html/occ config:system:set check_data_directory_permissions --value=false --type=bool - fi + # We do our own permission check so the permission check is not needed + php /var/www/html/occ config:system:set check_data_directory_permissions --value=false --type=bool # Try to force generation of appdata dir: php /var/www/html/occ maintenance:repair @@ -297,6 +296,11 @@ if ! [ -f "$NEXTCLOUD_DATA_DIR/skip.update" ]; then done fi + # Set the permission check to its default value again if not set + if [ "$SKIP_DATA_DIRECTORY_PERMISSION_CHECK" = yes ]; then + php /var/www/html/occ config:system:set check_data_directory_permissions --value=true --type=bool + fi + #upgrade else touch "$NEXTCLOUD_DATA_DIR/update.failed"