aboutsummaryrefslogtreecommitdiff
path: root/runmepostgres.sh
diff options
context:
space:
mode:
authorTHarley2018-02-22 17:19:08 +0000
committerTHarley2018-02-22 17:19:08 +0000
commit3198c6c2474101623e3b95bd038effe210c176a8 (patch)
tree318483b8b380383ad9ddec6d606544375d3f6a8b /runmepostgres.sh
parentMerge branch 'trh/error-middleware' into 'master' (diff)
downloadmedicine-3198c6c2474101623e3b95bd038effe210c176a8.tar.gz
medicine-3198c6c2474101623e3b95bd038effe210c176a8.zip

Revert “Merge branch ‘trh/error-middleware’ into ‘master’”

This reverts merge request !13

Diffstat (limited to 'runmepostgres.sh')
-rwxr-xr-xrunmepostgres.sh8
1 files changed, 3 insertions, 5 deletions
diff --git a/runmepostgres.sh b/runmepostgres.sh
index dfa5764..632ea66 100755
--- a/runmepostgres.sh
+++ b/runmepostgres.sh
@@ -1,10 +1,8 @@
#!/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;
+~/pg/postgres/bin/pg_ctl -D ~/pg/postgres/data/ -l POSTGRES_logfile start;
-echo "> Conecting as admin user: " + ${USER};
-"$PGDIR/postgres/bin/psql" -U ${USER} postgres;
+#echo "> Conecting as admin user: " + ${USER};
+#~/pg/postgres/bin/psql -U ${USER} postgres;