aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornemsia <nemsia@nemsia.org>2017-04-11 13:54:13 +0200
committerGitHub <noreply@github.com>2017-04-11 13:54:13 +0200
commit0ab50ab5ebd65944784bea1b1af950d2a722471e (patch)
tree8dbf45ca5a9cfe66d7e25c3779223536a93c805f
parent22e483a8a3d8d5db6abff71cab7b2605b3d04455 (diff)
downloadmastodon_ynh-0ab50ab5ebd65944784bea1b1af950d2a722471e.tar.gz
mastodon_ynh-0ab50ab5ebd65944784bea1b1af950d2a722471e.tar.bz2
mastodon_ynh-0ab50ab5ebd65944784bea1b1af950d2a722471e.zip
Update install
-rw-r--r--scripts/install9
1 files changed, 3 insertions, 6 deletions
diff --git a/scripts/install b/scripts/install
index 7232b27..0a5d1bb 100644
--- a/scripts/install
+++ b/scripts/install
@@ -65,12 +65,6 @@ curl -sL https://deb.nodesource.com/setup_4.x | sudo bash -
sudo apt-get -y install nodejs
sudo npm install -g yarn
-# Create DB user mastodon
-ynh_psql_create_user_without_password "$app"
-
-# Create DB user mastodon
-ynh_psql_create_db_without_password "$app"
-
# Set UTF8 encoding by default
sudo su -c "psql" postgres <<< \
"update pg_database set datistemplate='false' where datname='template1';"\
@@ -78,6 +72,9 @@ sudo su -c "psql" postgres <<< \
"create database template1 encoding='UTF8' template template0;"\
"update pg_database set datistemplate='true' where datname='template1';"
+# Create DB user mastodon
+ynh_psql_create_db_without_password "$app"
+
# Download all Ruby source
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