mirror of
https://github.com/nextcloud/all-in-one.git
synced 2025-01-02 20:11:59 +08:00
try to update all apps a second time and try to prevent breakage
Signed-off-by: Simon L <szaimen@e.mail.de>
This commit is contained in:
parent
e50ad0b850
commit
c22a94ccc3
1 changed files with 2 additions and 0 deletions
|
@ -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
|
# 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
|
if [ "$UPDATE_NEXTCLOUD_APPS" = 'yes' ] && [ "$(date +%u)" = 6 ]; then
|
||||||
UPDATED_APPS="$(php /var/www/html/occ app:update --all)"
|
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
|
if [ -n "$UPDATED_APPS" ]; then
|
||||||
bash /notify.sh "Your apps just got updated!" "$UPDATED_APPS"
|
bash /notify.sh "Your apps just got updated!" "$UPDATED_APPS"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue