For your eyes

This commit is contained in:
Kayou 2019-02-22 00:58:12 +01:00
parent c24d45beff
commit d7f3815183
No known key found for this signature in database
GPG key ID: 823A2CBE071D3126

View file

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