diff options
| author | nemsia <nemsia@nemsia.org> | 2017-10-11 21:22:47 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-10-11 21:22:47 +0200 |
| commit | e5995887c0b96201db05d860493b119517f40607 (patch) | |
| tree | ad9f9f21daa5997d7151789b0fa915c081b9033f /scripts/upgrade | |
| parent | 502e75555bd83719746ca5c09fc18ce836cd4cb8 (diff) | |
| download | mastodon_ynh-e5995887c0b96201db05d860493b119517f40607.tar.gz mastodon_ynh-e5995887c0b96201db05d860493b119517f40607.tar.bz2 mastodon_ynh-e5995887c0b96201db05d860493b119517f40607.zip | |
Fix to 2.4.2
Diffstat (limited to 'scripts/upgrade')
| -rw-r--r-- | scripts/upgrade | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/scripts/upgrade b/scripts/upgrade index 0c818cd..0832e99 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -66,19 +66,21 @@ fi # add additional package for release 1.4 ynh_package_install pkg-config libprotobuf-dev protobuf-compiler libicu-dev libidn11-dev -# Install ruby 2.5.2 for release 2.0 +# Install ruby 2.4.2 for release 2.0 sudo su - $app <<RCOMMANDS -/opt/mastodon/.rbenv/bin/rbenv install 2.5.2 -/opt/mastodon/.rbenv/versions/2.5.2/bin/ruby -v +cd $final_path/.rbenv && git pull && cd - +cd $final_path/.rbenv/plugins/ruby-build && git pull && cd - +$final_path/.rbenv/bin/rbenv install 2.4.2 +$final_path/.rbenv/versions/2.4.2/bin/ruby -v RCOMMANDS -# Create symlink for ruby 2.5.2 -sudo ln -s /opt/mastodon/.rbenv/versions/2.5.2/bin/ruby /usr/bin/ruby || true +# Create symlink for ruby 2.4.2 +sudo ln -s $final_path/.rbenv/versions/2.4.2/bin/ruby /usr/bin/ruby || true # Install Mastodon sudo su - $app <<MCOMMANDS pushd ~/live -/opt/mastodon/.rbenv/versions/2.5.2/bin/gem install bundler +$final_path/.rbenv/versions/2.4.2/bin/gem install bundler bin/bundle install --deployment --without development test yarn install --production MCOMMANDS |
