aboutsummaryrefslogtreecommitdiff
path: root/scripts/install
diff options
context:
space:
mode:
authoryalh76 <yalh@yahoo.com>2021-02-24 06:35:45 +0100
committeryalh76 <yalh@yahoo.com>2021-02-24 06:35:45 +0100
commitb2af9c3f5ec4be1fbd10a9f14e7889aefec6b081 (patch)
treedf1b1df880b30c48023600352d7509b0a91a76cd /scripts/install
parent88969d7b7ad4e3581599f748ea3b61dfc51c19a5 (diff)
downloadmastodon_ynh-b2af9c3f5ec4be1fbd10a9f14e7889aefec6b081.tar.gz
mastodon_ynh-b2af9c3f5ec4be1fbd10a9f14e7889aefec6b081.tar.bz2
mastodon_ynh-b2af9c3f5ec4be1fbd10a9f14e7889aefec6b081.zip
Fix ynh_install_ruby
Diffstat (limited to 'scripts/install')
-rw-r--r--scripts/install16
1 files changed, 8 insertions, 8 deletions
diff --git a/scripts/install b/scripts/install
index a7ee1cb..368dcad 100644
--- a/scripts/install
+++ b/scripts/install
@@ -144,8 +144,8 @@ ynh_script_progression --message="Installing Ruby..."
ynh_install_ruby --ruby_version=$RUBY_VERSION
pushd "$final_path/live"
- gem update --system
- gem install bundler:$BUNDLER_VERSION --no-document
+ /opt/rbenv/versions/$app/bin/gem update --system
+ /opt/rbenv/versions/$app/bin/gem install bundler:$BUNDLER_VERSION --no-document
popd
#=================================================
@@ -188,14 +188,14 @@ chown -R "$app": "$final_path"
pushd "$final_path/live"
ynh_use_nodejs
- sudo -u $app PATH=$PATH $RBENV_ROOT/shims/bundle config deployment 'true'
- sudo -u $app PATH=$PATH $RBENV_ROOT/shims/bundle config without 'development test'
- sudo -u $app PATH=$PATH $RBENV_ROOT/shims/bundle install -j$(getconf _NPROCESSORS_ONLN)
+ sudo -u $app PATH=$PATH /opt/rbenv/versions/$app/bin/bundle config deployment 'true'
+ sudo -u $app PATH=$PATH /opt/rbenv/versions/$app/bin/bundle config without 'development test'
+ sudo -u $app PATH=$PATH /opt/rbenv/versions/$app/bin/bundle install -j$(getconf _NPROCESSORS_ONLN)
sudo -u $app PATH=$PATH yarn install --pure-lockfile
echo "SAFETY_ASSURED=1">> $config
- sudo -u $app RAILS_ENV=production PATH=$PATH bin/bundle exec rails db:setup --quiet
- sudo -u $app RAILS_ENV=production PATH=$PATH bin/bundle exec rails assets:precompile --quiet
- sudo -u $app RAILS_ENV=production PATH=$PATH bin/bundle exec rake mastodon:webpush:generate_vapid_key > key.txt
+ sudo -u $app RAILS_ENV=production PATH=$PATH /opt/rbenv/versions/$app/bin/bundle exec rails db:setup --quiet
+ sudo -u $app RAILS_ENV=production PATH=$PATH /opt/rbenv/versions/$app/bin/bundle exec rails assets:precompile --quiet
+ sudo -u $app RAILS_ENV=production PATH=$PATH /opt/rbenv/versions/$app/bin/bundle exec rake mastodon:webpush:generate_vapid_key > key.txt
sudo -u $app RAILS_ENV=production PATH=$PATH bin/tootctl accounts create "$admin" --email="$admin_mail" --confirmed --role=admin > /dev/null
sudo -u $app RAILS_ENV=production PATH=$PATH bin/tootctl accounts modify "$admin" --approve
popd