From 18227536cdf7a7789b5f3482f9dab0368b67b3a2 Mon Sep 17 00:00:00 2001 From: szaimen Date: Sun, 18 Sep 2022 23:26:06 +0200 Subject: [PATCH] fix removal of the updatenotification app for migrated instances Signed-off-by: szaimen --- Containers/nextcloud/entrypoint.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Containers/nextcloud/entrypoint.sh b/Containers/nextcloud/entrypoint.sh index afa6bb4b..b142cadb 100644 --- a/Containers/nextcloud/entrypoint.sh +++ b/Containers/nextcloud/entrypoint.sh @@ -135,8 +135,11 @@ if ! [ -f "/mnt/ncdata/skip.update" ]; then php /var/www/html/occ app:update --all # Fix removing the updatenotification for old instances + UPDATENOTIFICATION_STATUS="$(php /var/www/html/occ config:app:get updatenotification enabled)" if [ -d "/var/www/html/apps/updatenotification" ]; then php /var/www/html/occ app:disable updatenotification + elif [ "$UPDATENOTIFICATION_STATUS" != "no" ] && [ -n "$UPDATENOTIFICATION_STATUS" ]; then + php /var/www/html/occ config:app:set updatenotification enabled --value="no" fi fi