fix hack/db script

was foolish and failed to test this before, and then
we further added a db password

Signed-off-by: Jamie Klassen <cklassen@pivotal.io>
This commit is contained in:
Jamie Klassen 2019-02-06 16:29:21 -05:00
parent 6859445ddc
commit 67e8162570
1 changed files with 3 additions and 3 deletions

View File

@ -1,7 +1,7 @@
#!/bin/bash
if command -qs pgcli; then
pgcli -h localhost -p 6543 -U dev concourse
if which pgcli >/dev/null; then
PGPASSWORD=dev pgcli -h localhost -p 6543 -U dev concourse
else
psql -h localhost -p 6543 -U dev concourse
PGPASSWORD=dev psql -h localhost -p 6543 -U dev concourse
fi