mirror of
https://github.com/YunoHost-Apps/glitchsoc_ynh.git
synced 2024-09-03 19:15:59 +02:00
Upgrade to ruby 2.5.2 for release 2.0
This commit is contained in:
parent
099de1658f
commit
502e75555b
1 changed files with 17 additions and 0 deletions
|
@ -66,6 +66,23 @@ fi
|
||||||
# add additional package for release 1.4
|
# add additional package for release 1.4
|
||||||
ynh_package_install pkg-config libprotobuf-dev protobuf-compiler libicu-dev libidn11-dev
|
ynh_package_install pkg-config libprotobuf-dev protobuf-compiler libicu-dev libidn11-dev
|
||||||
|
|
||||||
|
# Install ruby 2.5.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
|
||||||
|
RCOMMANDS
|
||||||
|
|
||||||
|
# Create symlink for ruby 2.5.2
|
||||||
|
sudo ln -s /opt/mastodon/.rbenv/versions/2.5.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
|
||||||
|
bin/bundle install --deployment --without development test
|
||||||
|
yarn install --production
|
||||||
|
MCOMMANDS
|
||||||
|
|
||||||
# Apply Mastodon upgrade
|
# Apply Mastodon upgrade
|
||||||
sudo su - $app <<COMMANDS
|
sudo su - $app <<COMMANDS
|
||||||
pushd ~/live
|
pushd ~/live
|
||||||
|
|
Loading…
Reference in a new issue