diff options
| author | Tom Harley | 2018-02-08 18:28:57 +0000 |
|---|---|---|
| committer | Tom Harley | 2018-02-08 18:28:57 +0000 |
| commit | d1f88d13f5c60cd0229d4267f92cd4d79f5fbff3 (patch) | |
| tree | ce54ab9c43b611455b658cf2eaf4fc3c5ea71732 /runmepostgres.sh | |
| parent | added literal matching (diff) | |
| parent | configured server to use pg server on lab machines (diff) | |
| download | medicine-d1f88d13f5c60cd0229d4267f92cd4d79f5fbff3.tar.gz medicine-d1f88d13f5c60cd0229d4267f92cd4d79f5fbff3.zip | |
Merge branch ‘trh/db-orm’ into trh/payload-checker
Diffstat (limited to 'runmepostgres.sh')
| -rwxr-xr-x | runmepostgres.sh | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/runmepostgres.sh b/runmepostgres.sh new file mode 100755 index 0000000..dfa5764 --- /dev/null +++ b/runmepostgres.sh @@ -0,0 +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"; +"$PGDIR/postgres/bin/pg_ctl" -D "$PGDIR/postgres/data/" -l POSTGRES_logfile start; + +echo "> Conecting as admin user: " + ${USER}; +"$PGDIR/postgres/bin/psql" -U ${USER} postgres; |
