diff --git a/scripts/restore b/scripts/restore index 8345b3a..bfc5b50 100644 --- a/scripts/restore +++ b/scripts/restore @@ -15,7 +15,6 @@ source /usr/share/yunohost/helpers ynh_clean_setup () { #### Remove this function if there's nothing to clean before calling the remove script. - read -p "Press any key..." true } # Exit if an error occurs during the execution of the script diff --git a/scripts/upgrade b/scripts/upgrade index 08c1653..516f780 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -57,6 +57,7 @@ ynh_print_info "Backing up the app before upgrading (may take a while)..." ynh_backup_before_upgrade ynh_clean_setup () { # restore it if the upgrade fails + read -p "Press any key..." ynh_restore_upgradebackup } # Exit if an error occurs during the execution of the script