From 9de2a1dbacf8c152c68b240b7fd553037f41d8e1 Mon Sep 17 00:00:00 2001 From: DDATAA <45762540+Ddataa@users.noreply.github.com> Date: Fri, 17 Mar 2023 09:58:27 +0000 Subject: [PATCH] Update upgrade --- scripts/upgrade | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) 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 #=================================================