aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authoranmol <github@datamol.org>2019-01-07 11:53:50 +0530
committeranmol <github@datamol.org>2019-01-07 11:53:50 +0530
commite685d4d27a5bf08556c737e7aa7c9d86e22bbdac (patch)
treedac143cfb32751e45888d639dcf70407efd157c0 /scripts
parent7a7653e321a1e5b365f1de1c52c30fe391dfda2a (diff)
downloadmastodon_ynh-e685d4d27a5bf08556c737e7aa7c9d86e22bbdac.tar.gz
mastodon_ynh-e685d4d27a5bf08556c737e7aa7c9d86e22bbdac.tar.bz2
mastodon_ynh-e685d4d27a5bf08556c737e7aa7c9d86e22bbdac.zip
Give proper right permission
Diffstat (limited to 'scripts')
-rw-r--r--scripts/install4
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/install b/scripts/install
index 919d5e1..f82126b 100644
--- a/scripts/install
+++ b/scripts/install
@@ -205,10 +205,12 @@ ynh_replace_string "#SMTP_OPENSSL_VERIFY_MODE=peer" "SMTP_OPENSSL_V
# Preconfig CSS & JS
# Install Mastodon
+# Give right permission for the app
+chown -R "$app": "$final_path"
+
(
cd "$final_path/live"
su mastodon <<INSTALL
- $final_path/.rbenv/versions/2.5.3/bin/gem install bundler:1.16.5
$final_path/.rbenv/versions/2.5.3/bin/gem install bundler
$final_path/live/bin/bundle install -j$(getconf _NPROCESSORS_ONLN) --deployment --without development test
yarn install --production --no-progress --non-interactive --silent