aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSeshu Kumar M <seshu.kumar.m@huawei.com>2017-10-17 14:07:00 +0000
committerGerrit Code Review <gerrit@onap.org>2017-10-17 14:07:00 +0000
commitdce0b69dcec1555c88ef0cd813810d3c1519a3bf (patch)
tree5e4e66d5a207d2dcbdc5c44c182df633d62f83a1
parent038c9abe5dd712b0aacd327436aecacda4430c6f (diff)
parent8d73a695ae6c000b3be4d7381151ac507f36387c (diff)
Merge "corrected the condition for docker wait period"
-rwxr-xr-xdeploy.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/deploy.sh b/deploy.sh
index c4cf358..d785713 100755
--- 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)