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

This commit is contained in:
yalh76 2021-03-11 02:35:15 +01:00
parent 60aabdcaaf
commit 299888f01c
2 changed files with 4 additions and 3 deletions

View file

@ -273,8 +273,9 @@ ynh_use_ruby () {
ynh_ruby_load_path="PATH=$PATH"
# Sets the local application-specific Ruby version
(cd $final_path
rbenv local $ruby_version)
pushd $final_path
rbenv local $ruby_version
popd
}
# Install a specific version of Ruby

View file

@ -176,6 +176,7 @@ ynh_script_progression --message="Upgrading dependencies..."
ynh_install_app_dependencies $pkg_dependencies
ynh_install_ruby --ruby_version=$RUBY_VERSION
ynh_use_ruby
#=================================================
# CREATE DEDICATED USER
@ -264,7 +265,6 @@ then
chown -R $app: $final_path
pushd "$final_path"
ynh_use_ruby
# Install bundler, a gems installer
ynh_gem install bundler
# Install without documentation