From 9123b4c586a68998af2139d2cdc02d6f33e2296f Mon Sep 17 00:00:00 2001 From: Maniack Crudelis Date: Fri, 1 Dec 2017 21:32:32 +0100 Subject: [PATCH] Fix change url --- scripts/change_url | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/scripts/change_url b/scripts/change_url index 4d6b6ae..2c074dd 100644 --- a/scripts/change_url +++ b/scripts/change_url @@ -47,20 +47,11 @@ then fi #================================================= -# BACKUP BEFORE UPGRADE THEN ACTIVE TRAP +# MANAGE FAILURE OF THE SCRIPT #================================================= -if [ $change_domain -eq 0 ] -then - # 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 -fi +# Exit if an error occurs during the execution of the script +ynh_abort_if_errors #================================================= # STANDARD MODIFICATIONS