From 374b7bf7a67f0a9ea4d37321d75963a78c862806 Mon Sep 17 00:00:00 2001 From: Simon L Date: Thu, 17 Nov 2022 18:05:23 +0100 Subject: [PATCH] make sure that all apps are up-to-date Signed-off-by: Simon L --- Containers/nextcloud/entrypoint.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Containers/nextcloud/entrypoint.sh b/Containers/nextcloud/entrypoint.sh index 781e9d60..ec9b6403 100644 --- a/Containers/nextcloud/entrypoint.sh +++ b/Containers/nextcloud/entrypoint.sh @@ -267,6 +267,8 @@ if ! [ -f "$NEXTCLOUD_DATA_DIR/skip.update" ]; then rm "$NEXTCLOUD_DATA_DIR/update.failed" bash /notify.sh "Nextcloud update to $image_version successful!" "Feel free to inspect the Nextcloud container logs for more info." + php /var/www/html/occ app:update --all + # Restore app status if [ "${APPSTORAGE[0]}" != "no-export-done" ]; then echo "Restoring the status of apps. This can take a while..." @@ -281,13 +283,15 @@ if ! [ -f "$NEXTCLOUD_DATA_DIR/skip.update" ]; then fi # Only restore the group settings, if the app was enabled (and is thus compatible with the new NC version) if [ "${APPSTORAGE[$app]}" != "yes" ]; then - nextcloud_occ_no_check config:app:set "$app" enabled --value="${APPSTORAGE[$app]}" + php /var/www/html/occ config:app:set "$app" enabled --value="${APPSTORAGE[$app]}" fi fi fi done fi + php /var/www/html/occ app:update --all + # Apply optimization echo "Doing some optimizations..." php /var/www/html/occ maintenance:repair