check mail server is started

This commit is contained in:
Alexey Bannov 2017-03-28 09:48:09 -04:00
parent b998ba2d77
commit 535bc171b0
1 changed files with 6 additions and 0 deletions

View File

@ -464,6 +464,12 @@ fi
if [ "${MAIL_SERVER_ENABLED}" == "true" ]; then
if [ "${DOCKER_ENABLED}" == "true" ]; then
while ! bash ${SYSCONF_TOOLS_DIR}/wait-for-it.sh ${MAIL_SERVER_DB_HOST}:25 --quiet -s -- log_debug "MailServer is up"; do
sleep 1
done
fi
timeout=120;
interval=10;