diff options
author | yangyan <yangyanyj@chinamobile.com> | 2020-02-13 14:21:23 +0800 |
---|---|---|
committer | yangyan <yangyanyj@chinamobile.com> | 2020-02-13 14:25:50 +0800 |
commit | b72afcc3d49ecaaa62a7e4634ac493ab446e15d5 (patch) | |
tree | 66ccf21caa8058637778e020f6af19c4aee8357b /docker | |
parent | 2ad400a1d15e38b0deb09a312b11ffb333ec5df5 (diff) |
Fix problems accessing the MSB interface
Change-Id: I7da5e634c3b92c8d261f3791d22eacb0036d2ac2
Issue-ID: VFC-1621
Signed-off-by: yangyan <yangyanyj@chinamobile.com>
Diffstat (limited to 'docker')
-rwxr-xr-x | docker/docker-entrypoint.sh | 6 |
1 files changed, 5 insertions, 1 deletions
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 |