Merge pull request #2109 from nextcloud/enh/noid/change-permission-check

change how permission check setting works
This commit is contained in:
Simon L 2023-03-07 10:41:22 +01:00 committed by GitHub
commit 46ae99e36b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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"