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