diff --git a/scripts/backup b/scripts/backup index fef7284..6220ac4 100755 --- a/scripts/backup +++ b/scripts/backup @@ -13,7 +13,10 @@ 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 @@ -32,8 +35,6 @@ domain=$(ynh_app_setting_get --app=$app --key=domain) #================================================= ynh_print_info --message="Declaring files to be backed up..." -#================================================= -# STANDARD BACKUP STEPS #================================================= # BACKUP THE APP MAIN DIR #================================================= diff --git a/scripts/restore b/scripts/restore index fc99240..2f880fb 100755 --- a/scripts/restore +++ b/scripts/restore @@ -111,7 +111,7 @@ yunohost service add $app --description "Haste is an open-source pastebin softwa #================================================= 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" --line_match="haste@0.1.0 start" #================================================= # RESTORE THE LOGROTATE CONFIGURATION @@ -122,7 +122,7 @@ ynh_restore_file --origin_path="/etc/logrotate.d/$app" #================================================= # GENERIC FINALIZATION #================================================= -# RELOAD NGINX AND PHP-FPM +# RELOAD NGINX #================================================= ynh_script_progression --message="Reloading NGINX web server..." --weight=1