From 657fc2ab1f1415a7217d524d434a7a55579c6445 Mon Sep 17 00:00:00 2001 From: Olivier BILHAUT Date: Fri, 2 Feb 2018 17:13:23 +0100 Subject: [PATCH] Modified restore script start to be compliant with generic script --- scripts/restore | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/scripts/restore b/scripts/restore index 68dbbff..ab3b3f1 100755 --- a/scripts/restore +++ b/scripts/restore @@ -3,6 +3,15 @@ #================================================= # GENERIC START #================================================= + +#================================================= +# MANAGE SCRIPT FAILURE +#================================================= + +# Exit if an error occurs during the execution of the script +ynh_abort_if_errors + +#================================================ # IMPORT GENERIC HELPERS #================================================= @@ -14,12 +23,6 @@ fi source _common.sh source /usr/share/yunohost/helpers -#================================================= -# MANAGE SCRIPT FAILURE -#================================================= - -# Exit if an error occurs during the execution of the script -ynh_abort_if_errors #================================================= # LOAD SETTINGS