From dae8bc5e51bd7a9c3f9c40298b59e4edd1e7e84f Mon Sep 17 00:00:00 2001 From: alexeybannov Date: Mon, 22 Jun 2020 14:50:15 +0000 Subject: [PATCH] bug fix --- run-community-server.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/run-community-server.sh b/run-community-server.sh index 94f67f6..1463380 100644 --- a/run-community-server.sh +++ b/run-community-server.sh @@ -95,6 +95,10 @@ else fi if [ "${DOCKER_ENABLED}" == "true" ]; then + while ! bash ${SYSCONF_TOOLS_DIR}/wait-for-it.sh $DOCKER_DOCUMENT_SERVER_CONTAINER_NAME:8000 --quiet -s -- echo "Document Server is up"; do + sleep 1 + done + DOCKER_DOCUMENT_SERVER_PACKAGE_TYPE=$(curl -s http://$DOCKER_DOCUMENT_SERVER_CONTAINER_NAME:8000/info/info.json | jq '.licenseInfo.packageType'); if [ -n "$DOCKER_DOCUMENT_SERVER_PACKAGE_TYPE" ] && [ "$DOCKER_DOCUMENT_SERVER_PACKAGE_TYPE" -gt 0 ]; then