Change $psql to $pwd

This commit is contained in:
Kayou 2019-02-20 23:57:12 +01:00
parent 979f18a559
commit f0d8f88121
No known key found for this signature in database
GPG key ID: 823A2CBE071D3126

View file

@ -125,8 +125,8 @@ ynh_psql_dump_db() {
# | arg: pwd - the password to identify user by # | arg: pwd - the password to identify user by
ynh_psql_create_user() { ynh_psql_create_user() {
local user=$1 local user=$1
local psql=$2 local pwd=$2
ynh_psql_execute_as_root --sql="CREATE USER $user WITH PASSWORD $pwd" ynh_psql_execute_as_root --sql="CREATE USER $user WITH ENCRYPTED PASSWORD '$pwd'"
} }
# Check if a psql user exists # Check if a psql user exists