[fix] SQL error

This commit is contained in:
ljf (zamentur) 2019-09-27 11:59:11 +02:00 committed by GitHub
parent 4500f56c32
commit b41d7b47a4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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