From 7995e13a01f4c55901ca69ebb98c4be4fd1a9544 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Thu, 8 Feb 2024 23:14:21 +0100 Subject: [PATCH] fix --- scripts/install | 4 ++-- scripts/restore | 2 +- scripts/upgrade | 14 ++++++++++++-- 3 files changed, 15 insertions(+), 5 deletions(-) diff --git a/scripts/install b/scripts/install index 9bac060..8f7caa3 100755 --- a/scripts/install +++ b/scripts/install @@ -31,12 +31,12 @@ ynh_add_nginx_config # Create a dedicated systemd config ynh_add_systemd_config -yunohost service add "$app" --description="A short description of the app" --log="/var/log/$app/$app.log" +yunohost service add "$app" --description="Customizable web calendar" --log="/var/log/$app/$app.log" #================================================= # BUILDING OPEN WEB CALENDAR #================================================= -ynh_script_progression --message="Building $app..." +ynh_script_progression --message="Building $app..." --weight=5 pushd "$install_dir" python3 -m venv venv diff --git a/scripts/restore b/scripts/restore index bd00500..24fed30 100755 --- a/scripts/restore +++ b/scripts/restore @@ -29,7 +29,7 @@ ynh_restore_file --origin_path="/etc/nginx/conf.d/$domain.d/$app.conf" ynh_restore_file --origin_path="/etc/systemd/system/$app.service" systemctl enable "$app.service" --quiet -yunohost service add "$app" --description="A short description of the app" --log="/var/log/$app/$app.log" +yunohost service add "$app" --description="Customizable web calendar" --log="/var/log/$app/$app.log" #================================================= # GENERIC FINALIZATION diff --git a/scripts/upgrade b/scripts/upgrade index fdfb689..596fafb 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -21,7 +21,6 @@ ynh_systemd_action --service_name="$app" --action="stop" --log_path="/var/log/$a #================================================= # DOWNLOAD, CHECK AND UNPACK SOURCE #================================================= - ynh_script_progression --message="Upgrading source files..." --weight=1 # Download, check integrity, uncompress and patch the source from manifest.toml @@ -38,7 +37,18 @@ ynh_add_nginx_config ynh_add_systemd_config -yunohost service add "$app" --description="A short description of the app" --log="/var/log/$app/$app.log" +yunohost service add "$app" --description="Customizable web calendar" --log="/var/log/$app/$app.log" + +#================================================= +# BUILDING OPEN WEB CALENDAR +#================================================= +ynh_script_progression --message="Building $app..." --weight=5 + +pushd "$install_dir" + python3 -m venv venv + venv/bin/pip install --upgrade pip + venv/bin/pip install -r requirements.txt +popd #================================================= # RECONFIGURE THE APP (UPDATE CONF, APPLY MIGRATIONS...)