diff options
author | Seshu-Kumar-M <seshu.kumar.m@huawei.com> | 2017-10-17 18:06:26 +0530 |
---|---|---|
committer | Seshu-Kumar-M <seshu.kumar.m@huawei.com> | 2017-10-17 18:06:26 +0530 |
commit | 8d73a695ae6c000b3be4d7381151ac507f36387c (patch) | |
tree | 30de6de9440be92e934f8a9ee58d828ea1f1936a /deploy.sh | |
parent | d59da500e535b381ba9323a3a866ac15890ea488 (diff) |
corrected the condition for docker wait period
IssueId: SO-195
Change-Id: I44b5c910096d042b75e739306fea49a7509ac9a8
Signed-off-by: Seshu-Kumar-M <seshu.kumar.m@huawei.com>
Diffstat (limited to 'deploy.sh')
-rwxr-xr-x | deploy.sh | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) |