From a1f36e1d76ce0bdfe4ed14a6085212507584ecee Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Sun, 6 Sep 2020 21:27:15 +0200 Subject: [PATCH] Cleaning up --- scripts/backup | 5 +---- scripts/restore | 5 +---- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/scripts/backup b/scripts/backup index 6220ac4..60b4845 100755 --- a/scripts/backup +++ b/scripts/backup @@ -13,10 +13,7 @@ source /usr/share/yunohost/helpers #================================================= # MANAGE SCRIPT FAILURE #================================================= -ynh_clean_setup () { - ### Remove this function if there's nothing to clean before calling the remove script. - true -} + # Exit if an error occurs during the execution of the script ynh_abort_if_errors diff --git a/scripts/restore b/scripts/restore index 11accd7..f2cff50 100755 --- a/scripts/restore +++ b/scripts/restore @@ -13,9 +13,6 @@ source /usr/share/yunohost/helpers # MANAGE SCRIPT FAILURE #================================================= -ynh_clean_setup () { - true -} # Exit if an error occurs during the execution of the script ynh_abort_if_errors @@ -119,7 +116,7 @@ systemctl enable $app.service #================================================= ynh_script_progression --message="Starting a systemd service..." --weight=1 -ynh_systemd_action --service_name=$app --action="start" #--log_path="/var/log/$app/$app.log" +ynh_systemd_action --service_name=$app --action="start" --log_path="/var/log/$app/$app.log" #================================================= # RESTORE THE LOGROTATE CONFIGURATION