Browse Source

new: [pandachi-install] ``pgm`` allows overriding default PGUSER and PGHOST.

rc1
Valentin Lab 5 years ago
parent
commit
ff3f3c49a5
  1. 5
      bin/pandachi-install

5
bin/pandachi-install

@ -72,11 +72,14 @@ pgpass="/srv/datastore/data/postgres/var/lib/postgresql/data/pgpass"
}
cp "\$pgpass" /root/.pgpass
PGUSER=postgres
PGUSER=\${PGUSER:-postgres}
if [ -z "\$PGHOST" ]; then
PGHOST=\$(docker-ip | grep postgres | xargs echo | cut -f 3 -d " ") || {
echo "No local running postgres docker found." >&2
exit 1
}
fi
export PGHOST PGUSER
EOF

Loading…
Cancel
Save