From 82a53ab1395c89401dcf2baf833089551493c84e Mon Sep 17 00:00:00 2001 From: Simon L Date: Sat, 10 Jun 2023 14:49:50 +0200 Subject: [PATCH] disable integrity check temporarily Signed-off-by: Simon L --- Containers/nextcloud/entrypoint.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Containers/nextcloud/entrypoint.sh b/Containers/nextcloud/entrypoint.sh index e3bb6d15..96a41fac 100644 --- a/Containers/nextcloud/entrypoint.sh +++ b/Containers/nextcloud/entrypoint.sh @@ -12,6 +12,8 @@ directory_empty() { run_upgrade_if_needed_due_to_app_update() { if php /var/www/html/occ status | grep needsDbUpgrade | grep -q true; then + # Disable integrity check temporarily until next update + php /var/www/html/occ config:system:set integrity.check.disabled --type bool --value true php /var/www/html/occ upgrade php /var/www/html/occ app:enable nextcloud-aio --force fi @@ -354,6 +356,7 @@ DATADIR_PERMISSION_CONF else touch "$NEXTCLOUD_DATA_DIR/update.failed" echo "Upgrading nextcloud from $installed_version to $image_version..." + php /var/www/html/occ config:system:delete integrity.check.disabled if ! php /var/www/html/occ upgrade || ! php /var/www/html/occ -V; then echo "Upgrade failed. Please restore from backup." bash /notify.sh "Nextcloud update to $image_version failed!" "Please restore from backup!"