diff --git a/scripts/upgrade b/scripts/upgrade index ad159ce..e55c805 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -89,11 +89,6 @@ ynh_script_progression --message="Upgrading NGINX web server configuration..." - ynh_add_nginx_config env_path="$PATH" -# Create a dedicated systemd config -ynh_add_systemd_config - -yunohost service add $app --description="Zero Knowledge realtime collaborative editor" --log="/var/log/$app/$app.log" - #================================================= # UPGRADE DEPENDENCIES #================================================= @@ -114,6 +109,14 @@ pushd "$install_dir" ynh_exec_warn_less npm run build popd +#================================================= +# CREATE SYSTEMD SERVICE +#================================================= +# Create a dedicated systemd config +ynh_add_systemd_config + +yunohost service add $app --description="Zero Knowledge realtime collaborative editor" --log="/var/log/$app/$app.log" + #================================================= # ADD UPGRADED CONFIG WITH SANDBOX #=================================================