From 3e7565fb42d608517b23cb94c60d61a3672084c4 Mon Sep 17 00:00:00 2001 From: "Simon L." Date: Wed, 19 Aug 2026 12:15:59 +0200 Subject: [PATCH] upgrade-latest-major.sh: make sure the update-channel is set to "stable" Signed-off-by: Simon L. --- Containers/nextcloud/upgrade-latest-major.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Containers/nextcloud/upgrade-latest-major.sh b/Containers/nextcloud/upgrade-latest-major.sh index f066ac4a..21639c93 100644 --- a/Containers/nextcloud/upgrade-latest-major.sh +++ b/Containers/nextcloud/upgrade-latest-major.sh @@ -17,7 +17,14 @@ if [ -n "${INSTALLED_AT}" ]; then INSTALLED_AT="$(echo "${INSTALLED_AT}" | sed "s|[0-9][0-9]$|00|")" $PHP_CLI /var/www/html/occ config:app:set core installedat --value="${INSTALLED_AT}" fi + +# Make sure updater channel is set to "stable" +$PHP_CLI /var/www/html/occ config:system:set update_channel --value="stable" + +# Run the update $PHP_CLI /var/www/html/updater/updater.phar --no-interaction --no-backup + +# Do some tests if ! $PHP_CLI /var/www/html/occ -V || $PHP_CLI /var/www/html/occ status | grep maintenance | grep -q 'true'; then echo "Installation of Nextcloud failed!" touch "$NEXTCLOUD_DATA_DIR/install.failed"