mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
helpers2.1: fix positional arg parsing in ynh_psql_create_user
This commit is contained in:
parent
0bd69e5622
commit
e558513609
1 changed files with 2 additions and 0 deletions
|
@ -81,6 +81,8 @@ ynh_psql_dump_db() {
|
|||
# | arg: pwd - the password to identify user by
|
||||
#
|
||||
ynh_psql_create_user() {
|
||||
local user=$1
|
||||
local pwd=$2
|
||||
sudo --login --user=postgres psql <<< "CREATE USER $user WITH ENCRYPTED PASSWORD '$pwd'"
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue