mirror of
https://github.com/Gnucash/gnucash.git
synced 2026-09-03 20:53:02 -05:00
Wait for shutdown & start.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@5671 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
@@ -8,12 +8,12 @@ PG_CTL="pg_ctl -D $DB -o -p7777"
|
||||
|
||||
case $1 in
|
||||
create)
|
||||
$PG_CTL status | grep "pid" && $PG_CTL stop
|
||||
$PG_CTL status | grep "pid" && $PG_CTL stop && sleep 1
|
||||
rm -rf $DB
|
||||
initdb $DB || EXIT_VALUE=1
|
||||
;;
|
||||
destroy)
|
||||
$PG_CTL status | grep "pid" && $PG_CTL stop
|
||||
$PG_CTL status | grep "pid" && $PG_CTL stop && sleep 1
|
||||
rm -rf $DB
|
||||
;;
|
||||
start)
|
||||
|
||||
Reference in New Issue
Block a user