From 0caebd4bfdfd9c8d7840fc379412d5d1f867575f Mon Sep 17 00:00:00 2001 From: jw255 Date: Sat, 3 Mar 2018 14:53:31 +0000 Subject: pulled latest files from trh/payload-checker --- runmepostgres.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'runmepostgres.sh') diff --git a/runmepostgres.sh b/runmepostgres.sh index 632ea66..dfa5764 100755 --- a/runmepostgres.sh +++ b/runmepostgres.sh @@ -1,8 +1,10 @@ #!/bin/bash +PGDIR=${1-"$HOME/pg"} + read -p "Press [Enter] key to start Postgres (will already be running if you just got it) use ctl+c to cancel"; echo "> Starting Server"; -~/pg/postgres/bin/pg_ctl -D ~/pg/postgres/data/ -l POSTGRES_logfile start; +"$PGDIR/postgres/bin/pg_ctl" -D "$PGDIR/postgres/data/" -l POSTGRES_logfile start; -#echo "> Conecting as admin user: " + ${USER}; -#~/pg/postgres/bin/psql -U ${USER} postgres; +echo "> Conecting as admin user: " + ${USER}; +"$PGDIR/postgres/bin/psql" -U ${USER} postgres; -- cgit v1.2.1