openvidu-deployment: Add timeout in WAIT_KIBANA_URL to avoid possible blocked connections

pull/567/head
cruizba 2020-11-25 00:56:43 +01:00
parent 933ac7b2f8
commit be8e094044
1 changed files with 1 additions and 1 deletions

View File

@ -8,7 +8,7 @@ if [ ! -z "${WAIT_KIBANA_URL}" ]; then
printf "\n =======================================" printf "\n ======================================="
printf "\n" printf "\n"
until $(curl --insecure --output /dev/null --silent --head --fail ${WAIT_KIBANA_URL}) until $(curl --insecure --output /dev/null --silent --head --fail --max-time 10 --connect-timeout 10 ${WAIT_KIBANA_URL})
do do
printf "\n Waiting for kibana in '%s' URL..." "${WAIT_KIBANA_URL}" printf "\n Waiting for kibana in '%s' URL..." "${WAIT_KIBANA_URL}"
sleep 1 sleep 1