From 27ca7256d14a6fd4870995d5bdef7ac3864acb78 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Pi=C3=A9dallu?= Date: Wed, 13 Mar 2024 23:25:55 +0100 Subject: [PATCH] Fix script step weight --- scripts/install | 4 ++-- scripts/restore | 4 ++-- scripts/upgrade | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/scripts/install b/scripts/install index 1d270e9..a32b3b4 100755 --- a/scripts/install +++ b/scripts/install @@ -23,7 +23,7 @@ ynh_app_setting_set --app="$app" --key="secret_key_base" --value="$secret_key_ba ynh_script_progression --message="Installing NodeJS..." --weight=1 ynh_exec_warn_less ynh_install_nodejs --nodejs_version="$nodejs_version" -ynh_script_progression --message="Installing Ruby..." --weight=1 +ynh_script_progression --message="Installing Ruby..." --weight=4 ynh_exec_warn_less ynh_install_ruby --ruby_version="$ruby_version" #================================================= @@ -67,7 +67,7 @@ chown "$app:$app" "$install_dir/config/database.yml" #================================================= # BUILD APP #================================================= -ynh_script_progression --message="Building app..." --weight=1 +ynh_script_progression --message="Building app..." --weight=7 fabmanager_build_ruby diff --git a/scripts/restore b/scripts/restore index cdaeeb7..299a438 100755 --- a/scripts/restore +++ b/scripts/restore @@ -15,7 +15,7 @@ source /usr/share/yunohost/helpers ynh_script_progression --message="Reinstalling NodeJS..." --weight=1 ynh_exec_warn_less ynh_install_nodejs --nodejs_version="$nodejs_version" -ynh_script_progression --message="Reinstalling Ruby..." --weight=1 +ynh_script_progression --message="Reinstalling Ruby..." --weight=4 ynh_exec_warn_less ynh_install_ruby --ruby_version="$ruby_version" #================================================= @@ -54,7 +54,7 @@ ynh_psql_connect_as --user="$db_user" --password="$db_pwd" --database="$db_name" #================================================= # BUILD APP #================================================= -ynh_script_progression --message="Building app..." --weight=1 +ynh_script_progression --message="Building app..." --weight=7 fabmanager_build_ruby diff --git a/scripts/upgrade b/scripts/upgrade index f7f3515..c6faa43 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -42,7 +42,7 @@ ynh_secure_remove --file="/var/log/supervisor/$app-worker-stdout.log" ynh_script_progression --message="Updating NodeJS..." --weight=1 ynh_exec_warn_less ynh_install_nodejs --nodejs_version="$nodejs_version" -ynh_script_progression --message="Updating Ruby..." --weight=1 +ynh_script_progression --message="Updating Ruby..." --weight=4 ynh_exec_warn_less ynh_install_ruby --ruby_version="$ruby_version" #================================================= @@ -72,7 +72,7 @@ chown "$app:$app" "$install_dir/config/database.yml" #================================================= # BUILD APP #================================================= -ynh_script_progression --message="Building app..." --weight=1 +ynh_script_progression --message="Building app..." --weight=7 ynh_secure_remove --file="$install_dir/.cache" ynh_secure_remove --file="$install_dir/node_modules"