mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
fix ynh_psql_create_db
This commit is contained in:
parent
d030628a9b
commit
f2a4be2992
1 changed files with 1 additions and 1 deletions
|
@ -79,7 +79,7 @@ ynh_psql_create_db() {
|
||||||
# grant all privilegies to user
|
# grant all privilegies to user
|
||||||
if [[ $# -gt 1 ]]; then
|
if [[ $# -gt 1 ]]; then
|
||||||
#ynh_psql_create_user "$user" "$pwd"
|
#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
|
fi
|
||||||
|
|
||||||
#sudo --login --user=postgres createdb --owner="$user" "$db"
|
#sudo --login --user=postgres createdb --owner="$user" "$db"
|
||||||
|
|
Loading…
Add table
Reference in a new issue