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:
parent
60aabdcaaf
commit
299888f01c
2 changed files with 4 additions and 3 deletions
|
@ -273,8 +273,9 @@ ynh_use_ruby () {
|
||||||
ynh_ruby_load_path="PATH=$PATH"
|
ynh_ruby_load_path="PATH=$PATH"
|
||||||
|
|
||||||
# Sets the local application-specific Ruby version
|
# Sets the local application-specific Ruby version
|
||||||
(cd $final_path
|
pushd $final_path
|
||||||
rbenv local $ruby_version)
|
rbenv local $ruby_version
|
||||||
|
popd
|
||||||
}
|
}
|
||||||
|
|
||||||
# Install a specific version of Ruby
|
# Install a specific version of Ruby
|
||||||
|
|
|
@ -176,6 +176,7 @@ ynh_script_progression --message="Upgrading dependencies..."
|
||||||
|
|
||||||
ynh_install_app_dependencies $pkg_dependencies
|
ynh_install_app_dependencies $pkg_dependencies
|
||||||
ynh_install_ruby --ruby_version=$RUBY_VERSION
|
ynh_install_ruby --ruby_version=$RUBY_VERSION
|
||||||
|
ynh_use_ruby
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# CREATE DEDICATED USER
|
# CREATE DEDICATED USER
|
||||||
|
@ -264,7 +265,6 @@ then
|
||||||
chown -R $app: $final_path
|
chown -R $app: $final_path
|
||||||
|
|
||||||
pushd "$final_path"
|
pushd "$final_path"
|
||||||
ynh_use_ruby
|
|
||||||
# Install bundler, a gems installer
|
# Install bundler, a gems installer
|
||||||
ynh_gem install bundler
|
ynh_gem install bundler
|
||||||
# Install without documentation
|
# Install without documentation
|
||||||
|
|
Loading…
Add table
Reference in a new issue