diff --git a/scripts/restore b/scripts/restore index d1e7f6f..b60a9e4 100755 --- a/scripts/restore +++ b/scripts/restore @@ -95,13 +95,13 @@ yunohost service add $app ynh_script_progression --message="Restoring service..." --weight=10 ynh_restore_file "/etc/systemd/system/$app.service" -systemctl enable $app.service +systemctl enable $app.service --quiet systemctl start $app #================================================= # GENERIC FINALIZATION #================================================= -ynh_script_progression --message="Reloading NGINX web server ..." --weight=1 +ynh_script_progression --message="Reloading NGINX web server..." --weight=1 systemctl reload nginx diff --git a/scripts/upgrade b/scripts/upgrade index 195e05a..28df7fd 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -88,7 +88,7 @@ ynh_setup_source "$final_path" $architecture #================================================= ynh_script_progression --message="Upgrading NGINX web server configuration..." --weight=2 -# Create a dedicated nginx config +# Create a dedicated NGINX config if [ "$path_url" != "/" ] then ynh_replace_string "^#sub_path_only" "" "../conf/nginx.conf" @@ -179,6 +179,10 @@ systemctl restart $app #================================================= ynh_script_progression --message="Reloading NGINX web server..." --weight=1 -systemctl reload nginx +ynh_systemd_action --service_name=nginx --action=reload + +#================================================= +# END OF SCRIPT +#================================================= ynh_script_progression --message="Upgrade of $app completed" --last