Merge pull request #2152 from nextcloud/enh/noid/fix-app-update

try to update all apps a second time and try to prevent breakage
This commit is contained in:
Simon L 2023-03-15 14:25:21 +01:00 committed by GitHub
commit cc3b94a4c1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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