From cad36e8e5384cf93d6252a48b3dc7a1de8fbacfa Mon Sep 17 00:00:00 2001 From: JensDiemer Date: Wed, 19 Jan 2022 09:11:54 +0100 Subject: [PATCH] Tweak ynh_script_progression weights --- scripts/install | 4 ++-- scripts/restore | 2 +- scripts/upgrade | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/scripts/install b/scripts/install index c379a6e..de6020a 100755 --- a/scripts/install +++ b/scripts/install @@ -63,7 +63,7 @@ redis_db=$(ynh_redis_get_free_db) #================================================= # INSTALL DEPENDENCIES #================================================= -ynh_script_progression --message="Installing dependencies..." --weight=40 +ynh_script_progression --message="Installing dependencies..." --weight=20 ynh_exec_warn_less ynh_install_app_dependencies "$pkg_dependencies" @@ -101,7 +101,7 @@ ynh_system_user_create --username="$app" --home_dir="$final_path" --use_shell #================================================= # PIP INSTALLATION #================================================= -ynh_script_progression --message="Install project via pip..." --weight=80 +ynh_script_progression --message="Install project via pip..." --weight=50 # Always recreate everything fresh with current python version ynh_secure_remove "${final_path}/venv" diff --git a/scripts/restore b/scripts/restore index ccfbb2e..0cbf548 100755 --- a/scripts/restore +++ b/scripts/restore @@ -78,7 +78,7 @@ chown -R "$app:" "$final_path" #================================================= # REINSTALL DEPENDENCIES #================================================= -ynh_script_progression --message="Reinstalling dependencies..." --weight=40 +ynh_script_progression --message="Reinstalling dependencies..." --weight=20 ynh_exec_warn_less ynh_install_app_dependencies "$pkg_dependencies" diff --git a/scripts/upgrade b/scripts/upgrade index 764a08b..b07d1c9 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -63,7 +63,7 @@ ynh_add_nginx_config "public_path" "port" #================================================= # Update dependencies #================================================= -ynh_script_progression --message="Upgrading dependencies..." +ynh_script_progression --message="Upgrading dependencies..." --weight=20 ynh_exec_warn_less ynh_install_app_dependencies "$pkg_dependencies" @@ -85,7 +85,7 @@ ynh_add_systemd_config --service="$app" --template="django_example_ynh.service" #================================================= # UPGRADE VENV #================================================= -ynh_script_progression --message="Upgrade project via pip..." --weight=80 +ynh_script_progression --message="Upgrade project via pip..." --weight=50 # Always recreate everything fresh with current python version ynh_secure_remove "${final_path}/venv"