diff --git a/scripts/install b/scripts/install index 3d95897..1cf9080 100644 --- a/scripts/install +++ b/scripts/install @@ -44,7 +44,7 @@ ynh_script_progression --message="Starting app's systemd service..." # Enable and start a systemd service systemctl enable $app.service --quiet -ynh_systemd_action --service_name=$app --action="start" +ynh_systemd_action --service_name=$app --action="start" --log_path="systemd" #================================================= # END OF SCRIPT diff --git a/scripts/restore b/scripts/restore index f014257..0cc8d0e 100644 --- a/scripts/restore +++ b/scripts/restore @@ -21,6 +21,15 @@ systemctl enable $app.service --quiet yunohost service add $app +#================================================= +# GENERIC FINALIZATION +#================================================= +# RELOAD NGINX AND PHP-FPM OR THE APP SERVICE +#================================================= +ynh_script_progression --message="Reloading $app's service..." --weight=1 + +ynh_systemd_action --service_name="$app" --action="start" --log_path="systemd" + #================================================= # END OF SCRIPT #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index 9373126..cdf6ab8 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..." --weight=1 -ynh_systemd_action --service_name=$app --action="stop" +ynh_systemd_action --service_name=$app --action="stop" --log_path="systemd" #================================================= # REAPPLY SYSTEM CONFIGURATIONS @@ -48,7 +48,7 @@ chown root: "/etc/watchdog.conf" #================================================= ynh_script_progression --message="Starting a systemd service..." -ynh_systemd_action --service_name=$app --action="start" +ynh_systemd_action --service_name=$app --action="start" --log_path="systemd" #================================================= # END OF SCRIPT