aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authornemsia <nemsia@nemsia.org>2017-04-11 13:39:37 +0200
committerGitHub <noreply@github.com>2017-04-11 13:39:37 +0200
commit22e483a8a3d8d5db6abff71cab7b2605b3d04455 (patch)
tree431f5182bd67f736ba0677ffa5dc7aadb20f20d1 /scripts
parent692ceacf077628b739af16965e451c8df5c652a2 (diff)
downloadmastodon_ynh-22e483a8a3d8d5db6abff71cab7b2605b3d04455.tar.gz
mastodon_ynh-22e483a8a3d8d5db6abff71cab7b2605b3d04455.tar.bz2
mastodon_ynh-22e483a8a3d8d5db6abff71cab7b2605b3d04455.zip
Add create DB
Diffstat (limited to 'scripts')
-rw-r--r--scripts/install3
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/install b/scripts/install
index f5bc3dc..7232b27 100644
--- a/scripts/install
+++ b/scripts/install
@@ -68,6 +68,9 @@ 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';"\