[fix] Psql user should own the database

This commit is contained in:
ljf (zamentur) 2019-09-27 11:54:44 +02:00 committed by GitHub
parent c7c4d93968
commit 4500f56c32
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 # 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+="OWNER ${user} GRANT ALL PRIVILEGES ON DATABASE ${db} TO ${user} WITH GRANT OPTION;"
fi fi
ynh_psql_execute_as_root --sql="$sql" ynh_psql_execute_as_root --sql="$sql"