mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Merge pull request #813 from YunoHost/fix-psql-user-db-owner
[fix] Psql user should own the database
This commit is contained in:
commit
3d39023266
1 changed files with 1 additions and 0 deletions
|
@ -87,6 +87,7 @@ ynh_psql_create_db() {
|
|||
|
||||
# grant all privilegies to user
|
||||
if [ -n "$user" ]; then
|
||||
sql+="ALTER DATABASE ${db} OWNER TO ${user};"
|
||||
sql+="GRANT ALL PRIVILEGES ON DATABASE ${db} TO ${user} WITH GRANT OPTION;"
|
||||
fi
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue