diff options
| author | nemsia <nemsia@nemsia.org> | 2018-05-16 10:27:07 +0200 |
|---|---|---|
| committer | nemsia <nemsia@nemsia.org> | 2018-05-16 10:27:07 +0200 |
| commit | 28cdf3a0c418ffebf388f7c1f695407469d47124 (patch) | |
| tree | 85d36c23ca71126647dcab97450584ba52e72af0 /scripts/install | |
| parent | e6589fa54b9f2e23320c9845648ea85cd5ba3d2f (diff) | |
| download | mastodon_ynh-28cdf3a0c418ffebf388f7c1f695407469d47124.tar.gz mastodon_ynh-28cdf3a0c418ffebf388f7c1f695407469d47124.tar.bz2 mastodon_ynh-28cdf3a0c418ffebf388f7c1f695407469d47124.zip | |
rb2.5.1
Diffstat (limited to 'scripts/install')
| -rw-r--r-- | scripts/install | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/scripts/install b/scripts/install index 8e505e7..81ce213 100644 --- a/scripts/install +++ b/scripts/install @@ -170,14 +170,14 @@ eval \"\$(rbenv init -)\"" > $final_path/.profile # Install ruby-build ( - exec_as "$app" $final_path/.rbenv/bin/rbenv install 2.5.0 - exec_as "$app" $final_path/.rbenv/bin/rbenv global 2.5.0 - 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 + exec_as "$app" $final_path/.rbenv/bin/rbenv global 2.5.1 + 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 # Adjust Mastodon config # TODO: use official helper ynh_replace_string @@ -214,7 +214,7 @@ sed -i "s@#SMTP_OPENSSL_VERIFY_MODE=peer@SMTP_OPENSSL_VERIFY_MODE=none@g" "${fin ( cd "$final_path/live" su mastodon <<INSTALL -$final_path/.rbenv/versions/2.5.0/bin/gem install bundler +$final_path/.rbenv/versions/2.5.1/bin/gem install bundler $final_path/live/bin/bundle install -j$(getconf _NPROCESSORS_ONLN) --deployment --without development test --quiet yarn install --production --no-progress --non-interactive --silent |
