aboutsummaryrefslogtreecommitdiff
path: root/scripts/install
diff options
context:
space:
mode:
authornemsia <nemsia@nemsia.org>2017-04-11 15:10:40 +0200
committerGitHub <noreply@github.com>2017-04-11 15:10:40 +0200
commitea76c40191257cff2fc10837a7a5b28498d90544 (patch)
tree6f03e573aba489d2f94b98fb9f3badf18a8e2640 /scripts/install
parente5db703f41abfd2be44df40645a26eacf712ddfa (diff)
downloadmastodon_ynh-ea76c40191257cff2fc10837a7a5b28498d90544.tar.gz
mastodon_ynh-ea76c40191257cff2fc10837a7a5b28498d90544.tar.bz2
mastodon_ynh-ea76c40191257cff2fc10837a7a5b28498d90544.zip
Fix on git clone
Diffstat (limited to 'scripts/install')
-rw-r--r--scripts/install4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/install b/scripts/install
index df33c1e..aa4bd68 100644
--- a/scripts/install
+++ b/scripts/install
@@ -79,11 +79,11 @@ sudo su -c "psql" postgres <<< \
ynh_psql_create_db_without_password "$app"
# Download all Ruby source
-sudo su - mastodon
+sudo su - $app <<CLONECOMMANDS
sudo git clone https://github.com/rbenv/rbenv.git $final_path/.rbenv
sudo git clone https://github.com/rbenv/ruby-build.git $final_path/.rbenv/plugins/ruby-build
sudo git clone https://github.com/tootsuite/mastodon.git $final_path/live
-exit
+CLONECOMMANDS
# Be king rewind (/var/cache/yunohost/from_file/scripts)
popd