From c22a94ccc37e2b88c363a80054b0b37fce6c9a22 Mon Sep 17 00:00:00 2001 From: Simon L Date: Mon, 13 Mar 2023 22:14:40 +0100 Subject: [PATCH] try to update all apps a second time and try to prevent breakage Signed-off-by: Simon L --- Containers/nextcloud/entrypoint.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Containers/nextcloud/entrypoint.sh b/Containers/nextcloud/entrypoint.sh index bbe85075..36a0c59e 100644 --- a/Containers/nextcloud/entrypoint.sh +++ b/Containers/nextcloud/entrypoint.sh @@ -359,6 +359,8 @@ if ! [ -f "$NEXTCLOUD_DATA_DIR/skip.update" ]; then # Performing update of all apps if daily backups are enabled, running and successful and if it is saturday if [ "$UPDATE_NEXTCLOUD_APPS" = 'yes' ] && [ "$(date +%u)" = 6 ]; then UPDATED_APPS="$(php /var/www/html/occ app:update --all)" + # Update all apps again and try to prevent something like https://github.com/nextcloud/polls/issues/2793 from happening + php /var/www/html/occ app:update --all if [ -n "$UPDATED_APPS" ]; then bash /notify.sh "Your apps just got updated!" "$UPDATED_APPS" fi