From b02d5cde1a29c0e17f0cb1c132c8fce6f8383b46 Mon Sep 17 00:00:00 2001 From: Simon L Date: Mon, 21 Nov 2022 18:38:34 +0100 Subject: [PATCH] fix the new update process Signed-off-by: Simon L --- Containers/nextcloud/entrypoint.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Containers/nextcloud/entrypoint.sh b/Containers/nextcloud/entrypoint.sh index ec9b6403..d932b6b8 100644 --- a/Containers/nextcloud/entrypoint.sh +++ b/Containers/nextcloud/entrypoint.sh @@ -145,7 +145,7 @@ if ! [ -f "$NEXTCLOUD_DATA_DIR/skip.update" ]; then echo "No apps detected, aborting export of app status..." APPSTORAGE="no-export-done" else - read -ra NC_APPS_ARRAY <<< "$NC_APPS" + mapfile -t NC_APPS_ARRAY <<< "$NC_APPS" declare -Ag APPSTORAGE echo "Disabling apps before the update in order to make the update procedure more safe. This can take a while..." for app in "${NC_APPS_ARRAY[@]}"; do @@ -257,6 +257,7 @@ if ! [ -f "$NEXTCLOUD_DATA_DIR/skip.update" ]; then #upgrade else + touch "$NEXTCLOUD_DATA_DIR/update.failed" echo "Upgrading nextcloud from $installed_version to $image_version..." if ! php /var/www/html/occ upgrade || ! php /var/www/html/occ -V; then echo "Upgrade failed. Please restore from backup."