disable non zern check on wait for db ready

Signed-off-by: wang yan <wangyan@vmware.com>
This commit is contained in:
wang yan 2019-03-09 12:52:33 +08:00
parent 7d6cdefae6
commit f49b5910d2
1 changed files with 2 additions and 0 deletions

View File

@ -29,6 +29,7 @@ clean_db() {
} }
wait_for_db_ready() { wait_for_db_ready() {
set +e
TIMEOUT=12 TIMEOUT=12
while [ $TIMEOUT -gt 0 ]; do while [ $TIMEOUT -gt 0 ]; do
docker exec fix-notary-migration pg_isready | grep "accepting connections" docker exec fix-notary-migration pg_isready | grep "accepting connections"
@ -43,6 +44,7 @@ wait_for_db_ready() {
clean_db clean_db
exit 1 exit 1
fi fi
set -e
} }
fix_notary_server() { fix_notary_server() {