fix ynh_psql_create_db

This commit is contained in:
Kayou 2019-02-20 01:39:22 +01:00
parent d030628a9b
commit f2a4be2992
No known key found for this signature in database
GPG key ID: 823A2CBE071D3126

View file

@ -79,7 +79,7 @@ ynh_psql_create_db() {
# grant all privilegies to user
if [[ $# -gt 1 ]]; then
#ynh_psql_create_user "$user" "$pwd"
sql+=" GRANT ALL PRIVILEGES ON ${db} TO ${2} WITH GRANT OPTION;"
sql+="GRANT ALL PRIVILEGES ON DATABASE ${db} TO ${2} WITH GRANT OPTION;"
fi
#sudo --login --user=postgres createdb --owner="$user" "$db"