aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoranmol <github@datamol.org>2019-01-22 13:02:55 +0530
committeranmol <github@datamol.org>2019-01-22 13:02:55 +0530
commitf281b053c8984bf3c7e1507b7e43088e440019d9 (patch)
treef9b77b6a97d078dba7c90ce25471b4c88a8e2bd1
parent994c1f3c0b3cd4db2badba7c76f3d9400f1fb472 (diff)
downloadmastodon_ynh-f281b053c8984bf3c7e1507b7e43088e440019d9.tar.gz
mastodon_ynh-f281b053c8984bf3c7e1507b7e43088e440019d9.tar.bz2
mastodon_ynh-f281b053c8984bf3c7e1507b7e43088e440019d9.zip
Use of rbenv 2.6.0
-rw-r--r--scripts/install8
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/install b/scripts/install
index 47e579c..7859db8 100644
--- a/scripts/install
+++ b/scripts/install
@@ -206,9 +206,9 @@ chown -R "$app": "$final_path"
(
cd "$final_path/live"
su mastodon <<INSTALL
- $final_path/.rbenv/versions/2.6.0/bin/gem install bundler:1.16.6
+ $final_path/.rbenv/versions/2.6.0/bin/gem install bundler:1.16.6 --no-ri --no-rdoc
$final_path/.rbenv/versions/2.6.0/bin/gem install bundler
- $final_path/.rbenv/versions/2.6.0/bin/bundle install bundler \
+ $final_path/.rbenv/versions/2.6.0/bin/bundle install \
-j$(getconf _NPROCESSORS_ONLN) \
--deployment --without development test
yarn install --pure-lockfile
@@ -240,8 +240,8 @@ account = Account.create!(username: '$admin_mastodon')
user = User.create!(email: '$admin_mastodon_mail', password: '$admin_pass', account: account)
CREATEUSER
su mastodon <<SETADMIN
-RAILS_ENV=production $final_path/.rbenv/versions/2.6.0/bin/tootctl accounts modify $admin_mastodon --confirm
-RAILS_ENV=production $final_path/.rbenv/versions/2.6.0/bin/tootctl accounts modify $admin_mastodon --role admin
+RAILS_ENV=production bin/tootctl accounts modify $admin_mastodon --confirm
+RAILS_ENV=production bin/tootctl accounts modify $admin_mastodon --role admin
SETADMIN
)