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

Udated ruby-build to 2.6.0

This commit is contained in:
anmol 2019-01-07 14:43:36 +05:30
parent ad188b0013
commit 3647d3393d
2 changed files with 8 additions and 8 deletions

View file

@ -1,5 +1,5 @@
SOURCE_URL=https://github.com/rbenv/ruby-build/archive/v20181207.tar.gz
SOURCE_SUM=74b4ffac4e8d6e68685afad035c64573280e93dfb2ab81fd7b613085e8a69c23
SOURCE_URL=https://github.com/rbenv/ruby-build/archive/v20181225.tar.gz
SOURCE_SUM=5ace4787ace47384dc419b20f5eb5a59f1174e00bfabcfed74a175033cd0b18a
SOURCE_SUM_PRG=sha256sum
SOURCE_FORMAT=tar.gz
SOURCE_IN_SUBDIR=true

View file

@ -161,14 +161,14 @@ eval \"\$(rbenv init -)\"" > $final_path/.profile
# Install ruby-build
(
exec_as "$app" $final_path/.rbenv/bin/rbenv install 2.5.3 || true
exec_as "$app" $final_path/.rbenv/bin/rbenv global 2.5.3 || true
exec_as "$app" $final_path/.rbenv/versions/2.5.3/bin/ruby -v
exec_as "$app" $final_path/.rbenv/bin/rbenv install 2.6.0 || true
exec_as "$app" $final_path/.rbenv/bin/rbenv global 2.6.0 || true
exec_as "$app" $final_path/.rbenv/versions/2.6.0/bin/ruby -v
)
# Create symlink for ruby
rm /usr/bin/ruby || true
ln -s $final_path/.rbenv/versions/2.5.3/bin/ruby /usr/bin/ruby || true
ln -s $final_path/.rbenv/versions/2.6.0/bin/ruby /usr/bin/ruby || true
# Yarn install on root
pushd $final_path/live
@ -211,8 +211,8 @@ chown -R "$app": "$final_path"
(
cd "$final_path/live"
su mastodon <<INSTALL
$final_path/.rbenv/versions/2.5.3/bin/gem install bundler
$final_path/.rbenv/versions/2.5.3/bin/gem bundle update --bundler
$final_path/.rbenv/versions/2.6.0/bin/gem install bundler
$final_path/.rbenv/versions/2.6.0/bin/gem bundle update --bundler
$final_path/live/bin/bundle install -j$(getconf _NPROCESSORS_ONLN) --deployment --without development test
yarn install --production --no-progress --non-interactive --silent
echo "SAFETY_ASSURED=1">> .env.production