1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/mastodon_ynh.git synced 2024-09-03 19:46:02 +02:00

Fix install steps

This commit is contained in:
yalh76 2019-03-21 03:43:47 +01:00
parent 3cea0bdc57
commit 737de6a78a
2 changed files with 5 additions and 5 deletions

View file

@ -160,8 +160,8 @@ ynh_system_user_create $app $final_path
ynh_install_ruby --ruby_version=2.6.0
/opt/rbenv/versions/2.6.0/bin/gem update --system
/opt/rbenv/versions/2.6.0/bin/gem install bundler --no-document
#/opt/rbenv/versions/2.6.0/bin/gem update --system
#/opt/rbenv/versions/2.6.0/bin/gem install bundler --no-document
#=================================================
# MODIFY A CONFIG FILE

View file

@ -149,10 +149,12 @@ ynh_system_user_create $app
#=================================================
# SPECIFIC UPGRADE
#=================================================
# INSTALLING RUBY
# INSTALLING RUBY AND BUNDLER
#=================================================
ynh_install_ruby --ruby_version=2.6.0
/opt/rbenv/versions/2.6.0/bin/gem update --system
/opt/rbenv/versions/2.6.0/bin/gem install bundler
#=================================================
# UPGRADE MASTODON
@ -163,8 +165,6 @@ chown -R "$app": "$final_path"
pushd "$final_path/live"
ynh_use_nodejs
sudo -u "$app" env PATH=$PATH /opt/rbenv/versions/2.6.0/bin/gem update --system
sudo -u "$app" env PATH=$PATH /opt/rbenv/versions/2.6.0/bin/gem install bundler
if [ "$(lsb_release --codename --short)" == "jessie" ]; then
sudo -u "$app" env PATH=$PATH /opt/rbenv/versions/2.6.0/bin/bundle install --deployment --without development test
else