1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/discourse_ynh.git synced 2024-09-03 18:26:18 +02:00

Fix upgrade ruby version

This commit is contained in:
Salamandar 2024-05-24 15:22:42 +02:00
parent cdaf7f6fe7
commit fcf08b6e93

View file

@ -56,7 +56,6 @@ fi
#================================================= #=================================================
ynh_script_progression --message="Upgrading Ruby..." ynh_script_progression --message="Upgrading Ruby..."
ynh_exec_warn_less ynh_install_ruby --ruby_version="$ruby_version" ynh_exec_warn_less ynh_install_ruby --ruby_version="$ruby_version"
ynh_use_ruby
ynh_script_progression --message="Upgrading NodeJS..." ynh_script_progression --message="Upgrading NodeJS..."
ynh_exec_warn_less ynh_install_nodejs --nodejs_version=$nodejs_version 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..." 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 # Make a backup of the original config file if modified
unicorn_config_file="$install_dir/config/unicorn.conf.rb" unicorn_config_file="$install_dir/config/unicorn.conf.rb"
ynh_backup_if_checksum_is_different "$unicorn_config_file" ynh_backup_if_checksum_is_different "$unicorn_config_file"