From 56c48a47324ffb851fb73654c0fc52049fae5b31 Mon Sep 17 00:00:00 2001 From: magikcypress Date: Sun, 9 Apr 2017 16:32:12 +0200 Subject: Update install --- scripts/install | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) (limited to 'scripts/install') diff --git a/scripts/install b/scripts/install index 174fc42..e73ad27 100644 --- a/scripts/install +++ b/scripts/install @@ -72,13 +72,12 @@ dbuser=$app # Generate random password dbpass=$(ynh_string_random) ynh_psql_create_db "$dbname" "$dbuser" "$dbpass" -# sudo su -c "psql" postgres <<< \ -# "CREATE EXTENSION mastodon;" # Download all Ruby source sudo git clone https://github.com/rbenv/rbenv.git $final_path/.rbenv git clone https://github.com/rbenv/ruby-build.git $final_path/.rbenv/plugins/ruby-build git clone https://github.com/tootsuite/mastodon.git $final_path/live +git clone git://github.com/dcarley/rbenv-sudo.git $final_path/.rbenv/plugins/rbenv-sudo sudo chown -R $app: "${final_path}" # Install de rbenv @@ -96,11 +95,14 @@ sudo su - $app <