mirror of
https://github.com/YunoHost-Apps/mastodon_ynh.git
synced 2024-09-03 19:46:02 +02:00
Upgrade rb to 2.5.1
This commit is contained in:
parent
a4fe373844
commit
7743c8316b
1 changed files with 6 additions and 6 deletions
|
@ -66,22 +66,22 @@ fi
|
||||||
# add additional package for upgrade
|
# add additional package for upgrade
|
||||||
ynh_package_install pkg-config libprotobuf-dev protobuf-compiler libicu-dev libidn11-dev postgresql-server-dev-9.4
|
ynh_package_install pkg-config libprotobuf-dev protobuf-compiler libicu-dev libidn11-dev postgresql-server-dev-9.4
|
||||||
|
|
||||||
# Install ruby 2.5.0 for release 2.0
|
# Install ruby 2.5.1 for release 2.4.0
|
||||||
sudo su - $app <<RCOMMANDS
|
sudo su - $app <<RCOMMANDS
|
||||||
cd $final_path/.rbenv && git pull && cd -
|
cd $final_path/.rbenv && git pull && cd -
|
||||||
cd $final_path/.rbenv/plugins/ruby-build && git pull && cd -
|
cd $final_path/.rbenv/plugins/ruby-build && git pull && cd -
|
||||||
$final_path/.rbenv/bin/rbenv install 2.5.0 || true
|
$final_path/.rbenv/bin/rbenv install 2.5.1 || true
|
||||||
$final_path/.rbenv/versions/2.5.0/bin/ruby -v
|
$final_path/.rbenv/versions/2.5.1/bin/ruby -v
|
||||||
RCOMMANDS
|
RCOMMANDS
|
||||||
|
|
||||||
# Create symlink for ruby 2.5.0
|
# Create symlink for ruby 2.5.1
|
||||||
sudo rm /usr/bin/ruby || true
|
sudo rm /usr/bin/ruby || true
|
||||||
sudo ln -s $final_path/.rbenv/versions/2.5.0/bin/ruby /usr/bin/ruby || true
|
sudo ln -s $final_path/.rbenv/versions/2.5.1/bin/ruby /usr/bin/ruby || true
|
||||||
|
|
||||||
# Install Mastodon
|
# Install Mastodon
|
||||||
sudo su - $app <<MCOMMANDS
|
sudo su - $app <<MCOMMANDS
|
||||||
pushd ~/live
|
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
|
bin/bundle install --deployment --without development test
|
||||||
yarn install --pure-lockfile
|
yarn install --pure-lockfile
|
||||||
MCOMMANDS
|
MCOMMANDS
|
||||||
|
|
Loading…
Add table
Reference in a new issue