corrected the condition for docker wait period 77/19277/1
authorSeshu-Kumar-M <seshu.kumar.m@huawei.com>
Tue, 17 Oct 2017 12:36:26 +0000 (18:06 +0530)
committerSeshu-Kumar-M <seshu.kumar.m@huawei.com>
Tue, 17 Oct 2017 12:36:26 +0000 (18:06 +0530)
IssueId: SO-195

Change-Id: I44b5c910096d042b75e739306fea49a7509ac9a8
Signed-off-by: Seshu-Kumar-M <seshu.kumar.m@huawei.com>
deploy.sh

index c4cf358..d785713 100755 (executable)
--- a/deploy.sh
+++ b/deploy.sh
@@ -114,7 +114,7 @@ function wait_for_mariadb() {
     
     # wait for the real startup
     AMOUNT_STARTUP=$($DOCKER_CMD logs ${CONTAINER_NAME} 2>&1 | grep 'mysqld: ready for connections.' | wc -l)
-    while [[ ${AMOUNT_STARTUP} -lt 2 ]];
+    while [[ ${AMOUNT_STARTUP} -lt 1 ]];
     do
     echo "Waiting for '$CONTAINER_NAME' deployment to finish ..."
     AMOUNT_STARTUP=$($DOCKER_CMD logs ${CONTAINER_NAME} 2>&1 | grep 'mysqld: ready for connections.' | wc -l)