This commit is contained in:
Kayou 2019-03-07 11:25:32 +01:00 committed by GitHub
parent e3dfd63481
commit f1e097a5bd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -74,9 +74,9 @@ ynh_psql_create_db() {
local db=$1 local db=$1
local user=${2:-} local user=${2:-}
local sql="CREATE DATABASE ${db};" local sql="CREATE DATABASE ${db};"
# grant all privilegies to user # grant all privilegies to user
if [ -n "$user" ]; then if [ -n "$user" ]; then
sql+="GRANT ALL PRIVILEGES ON DATABASE ${db} TO ${user} WITH GRANT OPTION;" sql+="GRANT ALL PRIVILEGES ON DATABASE ${db} TO ${user} WITH GRANT OPTION;"
fi fi