From fcf08b6e938ce1ac8f77709b692b1af2b9bc80ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Pi=C3=A9dallu?= Date: Fri, 24 May 2024 15:22:42 +0200 Subject: [PATCH] Fix upgrade ruby version --- scripts/upgrade | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/upgrade b/scripts/upgrade index 355a2f3..0cb4d02 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -56,7 +56,6 @@ fi #================================================= ynh_script_progression --message="Upgrading Ruby..." ynh_exec_warn_less ynh_install_ruby --ruby_version="$ruby_version" -ynh_use_ruby ynh_script_progression --message="Upgrading NodeJS..." ynh_exec_warn_less ynh_install_nodejs --nodejs_version=$nodejs_version @@ -127,6 +126,9 @@ echo "svgo: false" | ynh_exec_as "$app" tee "$install_dir/.image_optim.yml" >/de #================================================= ynh_script_progression --message="Setting up Unicorn..." +# Do it after setup_source because .ruby-version is stored in cwd +ynh_use_ruby + # Make a backup of the original config file if modified unicorn_config_file="$install_dir/config/unicorn.conf.rb" ynh_backup_if_checksum_is_different "$unicorn_config_file"