mirror of
https://github.com/nextcloud/all-in-one.git
synced 2025-12-24 00:16:50 +00:00
don't allow the Nextcloud container to start if the update failed
Signed-off-by: szaimen <szaimen@e.mail.de>
This commit is contained in:
parent
1411a0d8b1
commit
9f6c532170
3 changed files with 19 additions and 0 deletions
|
|
@ -152,6 +152,11 @@ if [ "$BORG_MODE" = backup ]; then
|
|||
# Inform user
|
||||
get_expiration_time
|
||||
echo "Backup finished successfully on $END_DATE_READABLE ($DURATION_READABLE)"
|
||||
if [ -f "/nextcloud_aio_volumes/nextcloud_aio_nextcloud_data/update.failed" ]; then
|
||||
echo "However a Nextcloud update failed. So reporting that the backup failed which will skip any update attempt the next time."
|
||||
echo "Please restore a backup from before the failed Nextcloud update attempt."
|
||||
exit 1
|
||||
fi
|
||||
exit 0
|
||||
fi
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue