helpers2.1: fix positional arg parsing in ynh_psql_create_user

This commit is contained in:
Alexandre Aubin 2024-06-22 22:52:31 +02:00
parent 0bd69e5622
commit e558513609

View file

@ -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'"
}