mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Change $psql to $pwd
This commit is contained in:
parent
979f18a559
commit
f0d8f88121
1 changed files with 2 additions and 2 deletions
|
@ -125,8 +125,8 @@ ynh_psql_dump_db() {
|
|||
# | arg: pwd - the password to identify user by
|
||||
ynh_psql_create_user() {
|
||||
local user=$1
|
||||
local psql=$2
|
||||
ynh_psql_execute_as_root --sql="CREATE USER $user WITH PASSWORD $pwd"
|
||||
local pwd=$2
|
||||
ynh_psql_execute_as_root --sql="CREATE USER $user WITH ENCRYPTED PASSWORD '$pwd'"
|
||||
}
|
||||
|
||||
# Check if a psql user exists
|
||||
|
|
Loading…
Add table
Reference in a new issue