From e1bb6f7a04c76ec624f9fa078164e0926ecd2ac6 Mon Sep 17 00:00:00 2001 From: Clinton Ebadi Date: Sat, 15 Dec 2018 12:22:57 -0500 Subject: [PATCH] new-user: use most recent generated password for username It is possible for the same username to apply multiple times and not finish the application, make sure to use the most recent one. --- new-user | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/new-user b/new-user index cb64723..86a5692 100755 --- a/new-user +++ b/new-user @@ -14,7 +14,7 @@ if test -z "$REALNM"; then exit 1 fi -INITPW=$(sudo -u hcoop psql hcoop_hcoop -tc "select unix_passwd from MemberApp where name = '${USERNM}' order by id desc limit 1;") +INITPW=$(sudo -u hcoop psql -p 5433 hcoop_portal3 -tc "select unix_passwd from MemberApp where name = '${USERNM}' order by id desc limit 1;") # -- 2.20.1