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

Fix to 2.4.2

This commit is contained in:
nemsia 2017-10-11 21:22:47 +02:00 committed by GitHub
parent 502e75555b
commit e5995887c0

View file

@ -66,19 +66,21 @@ 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 # Install ruby 2.4.2 for release 2.0
sudo su - $app <<RCOMMANDS sudo su - $app <<RCOMMANDS
/opt/mastodon/.rbenv/bin/rbenv install 2.5.2 cd $final_path/.rbenv && git pull && cd -
/opt/mastodon/.rbenv/versions/2.5.2/bin/ruby -v 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 RCOMMANDS
# Create symlink for ruby 2.5.2 # Create symlink for ruby 2.4.2
sudo ln -s /opt/mastodon/.rbenv/versions/2.5.2/bin/ruby /usr/bin/ruby || true sudo ln -s $final_path/.rbenv/versions/2.4.2/bin/ruby /usr/bin/ruby || true
# Install Mastodon # Install Mastodon
sudo su - $app <<MCOMMANDS sudo su - $app <<MCOMMANDS
pushd ~/live 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 bin/bundle install --deployment --without development test
yarn install --production yarn install --production
MCOMMANDS MCOMMANDS