From b927abb98bea0e725e8670a9fba6e6d5bd9ecad2 Mon Sep 17 00:00:00 2001 From: Jimmy Monin Date: Fri, 22 Sep 2017 21:34:28 +0200 Subject: [PATCH] Fix restore on failed upgrade --- scripts/upgrade | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/upgrade b/scripts/upgrade index 2926fdf..97d6133 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -89,7 +89,7 @@ is_public=$(ynh_app_setting_get "$app" is_public) if [ -f "/etc/yunohost/apps/$app/scripts/backup" ] ; then ynh_backup_before_upgrade # Backup the current version of the app ynh_clean_setup () { - ynh_backup_after_failed_upgrade + ynh_restore_upgradebackup } ynh_abort_if_errors # Stop script if an error is detected fi