From b72afcc3d49ecaaa62a7e4634ac493ab446e15d5 Mon Sep 17 00:00:00 2001 From: yangyan Date: Thu, 13 Feb 2020 14:21:23 +0800 Subject: Fix problems accessing the MSB interface Change-Id: I7da5e634c3b92c8d261f3791d22eacb0036d2ac2 Issue-ID: VFC-1621 Signed-off-by: yangyan --- docker/docker-entrypoint.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'docker') diff --git a/docker/docker-entrypoint.sh b/docker/docker-entrypoint.sh index 8f25b29a..7c8ba9ac 100755 --- a/docker/docker-entrypoint.sh +++ b/docker/docker-entrypoint.sh @@ -23,7 +23,11 @@ echo "MYSQL_ADDR=$MYSQL_ADDR" # Wait for MSB initialization echo "Wait for MSB initialization" for i in {1..5}; do - curl -sS -m 1 $MSB_ADDR > /dev/null && break + curl -sS -m 1 $MSB_PROTO:$MSB_ADDR/msb -k > /dev/null + res=$i? + if [ $res -ne 0 ]; then + break + fi sleep $i done -- cgit 1.2.3-korg