From a961856c7ec1a131cad408fd8133251607af688e Mon Sep 17 00:00:00 2001 From: nemsia Date: Wed, 13 Jun 2018 12:19:22 +0200 Subject: [PATCH] Add createdb right to mastodon postgre role --- scripts/_common.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/_common.sh b/scripts/_common.sh index 89ace8a..df631ad 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -162,7 +162,7 @@ ynh_psql_dump_db() { ynh_psql_create_user() { user="$1" pwd="$2" - sudo --login --user=postgres psql -c"CREATE USER $user WITH PASSWORD '$pwd';" postgres + sudo --login --user=postgres psql -c"CREATE USER $user WITH PASSWORD '$pwd' CREATEDB;" postgres } # Drop a user