From a6bc4eeb4677ebba0d99cf1bad190d32b8744b18 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Sun, 26 Feb 2023 18:44:02 +0100 Subject: [PATCH] Update upgrade --- scripts/upgrade | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index bb9ec38..1af5ed4 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -50,6 +50,20 @@ then popd fi + +#================================================= +# REAPPLY SYSTEM CONFIGURATIONS +#================================================= +ynh_script_progression --message="Upgrading system configurations related to $app..." --weight=1 + +# Create a dedicated NGINX config +ynh_add_nginx_config + +# Create a dedicated systemd config +ynh_add_systemd_config + +yunohost service add $app --description="$app daemon" + #================================================= # UPDATE A CONFIG FILE #================================================= @@ -65,19 +79,6 @@ ynh_add_config --template="../conf/jupyter_notebook_config.py" --destination="$i chown -R root: $install_dir/ chown -R $admin: $install_dir/.venv/ -#================================================= -# REAPPLY SYSTEM CONFIGURATIONS -#================================================= -ynh_script_progression --message="Upgrading system configurations related to $app..." --weight=1 - -# Create a dedicated NGINX config -ynh_add_nginx_config - -# Create a dedicated systemd config -ynh_add_systemd_config - -yunohost service add $app --description="$app daemon" - #================================================= # START SYSTEMD SERVICE #=================================================