aboutsummaryrefslogtreecommitdiff
path: root/scripts/upgrade
diff options
context:
space:
mode:
authornemsia <nemsia@nemsia.org>2018-05-16 10:27:07 +0200
committernemsia <nemsia@nemsia.org>2018-05-16 10:27:07 +0200
commit28cdf3a0c418ffebf388f7c1f695407469d47124 (patch)
tree85d36c23ca71126647dcab97450584ba52e72af0 /scripts/upgrade
parente6589fa54b9f2e23320c9845648ea85cd5ba3d2f (diff)
downloadmastodon_ynh-28cdf3a0c418ffebf388f7c1f695407469d47124.tar.gz
mastodon_ynh-28cdf3a0c418ffebf388f7c1f695407469d47124.tar.bz2
mastodon_ynh-28cdf3a0c418ffebf388f7c1f695407469d47124.zip
rb2.5.1
Diffstat (limited to 'scripts/upgrade')
-rw-r--r--scripts/upgrade12
1 files changed, 6 insertions, 6 deletions
diff --git a/scripts/upgrade b/scripts/upgrade
index e34ef9d..9d7cc7c 100644
--- a/scripts/upgrade
+++ b/scripts/upgrade
@@ -113,23 +113,23 @@ cp ../conf/nginx.conf /etc/nginx/conf.d/$domain.d/$app.conf
ynh_setup_source "$final_path/.rbenv" "app-rbenv"
ynh_setup_source "$final_path/.rbenv/plugins/ruby-build" "app-ruby-build"
-# Install ruby 2.5.0
+# Install ruby 2.5.1
(
- exec_as "$app" $final_path/.rbenv/bin/rbenv install 2.5.0 || true
- exec_as "$app" $final_path/.rbenv/bin/rbenv global 2.5.0 || true
- exec_as "$app" $final_path/.rbenv/versions/2.5.0/bin/ruby -v
+ exec_as "$app" $final_path/.rbenv/bin/rbenv install 2.5.1 || true
+ exec_as "$app" $final_path/.rbenv/bin/rbenv global 2.5.1 || true
+ exec_as "$app" $final_path/.rbenv/versions/2.5.1/bin/ruby -v
)
# Create symlink for ruby
rm /usr/bin/ruby || true
-ln -s $final_path/.rbenv/versions/2.5.0/bin/ruby /usr/bin/ruby || true
+ln -s $final_path/.rbenv/versions/2.5.1/bin/ruby /usr/bin/ruby || true
# Preconfig CSS & JS
# Install Mastodon
(
sudo su - $app <<MCOMMANDS
pushd ~/live
-$final_path/.rbenv/versions/2.5.0/bin/gem install bundler
+$final_path/.rbenv/versions/2.5.1/bin/gem install bundler
bin/bundle install --deployment --without development test
yarn install --pure-lockfile
MCOMMANDS