diff --git a/scripts/change_url b/scripts/change_url index 690b1ba..63c40b2 100644 --- a/scripts/change_url +++ b/scripts/change_url @@ -11,13 +11,29 @@ source /usr/share/yunohost/helpers #================================================= # STANDARD MODIFICATIONS +#================================================= +# STOP SYSTEMD SERVICE +#================================================= +ynh_script_progression --message="Stopping a systemd service..." --weight=1 + +ynh_systemd_action --service_name=$app --action="stop" --log_path="systemd" + #================================================= # MODIFY URL IN NGINX CONF #================================================= -ynh_script_progression --message="Updating NGINX web server configuration..." +ynh_script_progression --message="Updating NGINX web server configuration..." --weight=1 ynh_change_url_nginx_config +#================================================= +# GENERIC FINALISATION +#================================================= +# START SYSTEMD SERVICE +#================================================= +ynh_script_progression --message="Starting a systemd service..." --weight=1 + +ynh_systemd_action --service_name=$app --action="start" --log_path="systemd" + #================================================= # END OF SCRIPT #================================================= diff --git a/scripts/install b/scripts/install index dbf19ab..079ac36 100755 --- a/scripts/install +++ b/scripts/install @@ -78,7 +78,7 @@ yunohost service add $app --description="Monitoring web dashboard" --log="/var/l ynh_script_progression --message="Starting a systemd service..." # Start a systemd service -ynh_supervisor_action --service_name=$app --action="start" --log_path="/var/log/$app/$app.log" +ynh_supervisor_action --service_name=$app --action="start" --log_path="systemd" #================================================= # END OF SCRIPT diff --git a/scripts/restore b/scripts/restore index 8619afd..03b293d 100755 --- a/scripts/restore +++ b/scripts/restore @@ -58,7 +58,7 @@ yunohost service add $app --description="Monitoring web dashboard" --log="/var/l #================================================= ynh_script_progression --message="Starting a systemd service..." -ynh_supervisor_action --service_name=$app --action="start" --log_path="/var/log/$app/$app.log" +ynh_supervisor_action --service_name=$app --action="start" --log_path="systemd" #================================================= # GENERIC FINALIZATION diff --git a/scripts/upgrade b/scripts/upgrade index 42f8f9f..57025d0 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -22,7 +22,7 @@ upgrade_type=$(ynh_check_app_version_changed) #================================================= ynh_script_progression --message="Stopping a systemd service..." -ynh_systemd_action --service_name=$app --action="stop" --log_path="/var/log/$app/$app.log" +ynh_systemd_action --service_name=$app --action="stop" --log_path="systemd" #================================================= # DOWNLOAD, CHECK AND UNPACK SOURCE @@ -94,7 +94,7 @@ yunohost service add $app --description="Monitoring web dashboard" --log="/var/l #================================================= ynh_script_progression --message="Starting a systemd service..." -ynh_supervisor_action --service_name=$app --action="start" --log_path="/var/log/$app/$app.log" +ynh_supervisor_action --service_name=$app --action="start" --log_path="systemd" #================================================= # END OF SCRIPT