From 4a655186b5e04e6a278083892e13147f192d04a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Sun, 26 Jun 2022 12:28:52 +0200 Subject: [PATCH] Update upgrade --- scripts/upgrade | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index f6f60e1..ab2241f 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -51,16 +51,16 @@ upgrade_type=$(ynh_check_app_version_changed) #================================================= # BACKUP BEFORE UPGRADE THEN ACTIVE TRAP #================================================= -# ynh_script_progression --message="Backing up the app before upgrading (may take a while)..." --weight=1 +ynh_script_progression --message="Backing up the app before upgrading (may take a while)..." --weight=1 -# # Backup the current version of the app -# ynh_backup_before_upgrade -# ynh_clean_setup () { -# # Restore it if the upgrade fails -# ynh_restore_upgradebackup -# } -# # Exit if an error occurs during the execution of the script -# ynh_abort_if_errors +# Backup the current version of the app +ynh_backup_before_upgrade +ynh_clean_setup () { + # Restore it if the upgrade fails + ynh_restore_upgradebackup +} +# Exit if an error occurs during the execution of the script +ynh_abort_if_errors #================================================= # ENSURE DOWNWARD COMPATIBILITY