Skip to content

Commit 5ebe850

Browse files
committed
updated scripts
1 parent 91eed74 commit 5ebe850

File tree

6 files changed

+10
-2
lines changed

6 files changed

+10
-2
lines changed

pgsql-start.sh

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/usr/bin/env bash
2+
echo "\n\tStarting PostgreSQL database... Run 'sh pgsql-stop.sh' to terminate it.\n" && cd pgsql && sh start.sh && cd ..

pgsql-stop.sh

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/usr/bin/env bash
2+
cd pgsql && sh stop.sh && cd ..

pgsql/drop.sh

100644100755
+1
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1+
#!/usr/bin/env bash
12
psql probkb -f sql/drop.sql

pgsql/initdb.sh

100644100755
+1
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1+
#!/usr/bin/env bash
12
initdb db -E utf8

pgsql/start.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
#!/usr/bin/bash
2-
postgres -D db/
1+
#!/usr/bin/env bash
2+
postgres -D db/ &

pgsql/stop.sh

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/usr/bin/env bash
2+
pg_ctl stop -D db/

0 commit comments

Comments
 (0)