Fix problems accessing the MSB interface 62/101862/2
authoryangyan <yangyanyj@chinamobile.com>
Tue, 18 Feb 2020 01:05:51 +0000 (09:05 +0800)
committerYan Yang <yangyanyj@chinamobile.com>
Tue, 18 Feb 2020 02:06:26 +0000 (02:06 +0000)
Change-Id: Ie4deed6fbef015fa8f6292519e4b804e6ec4c43d
Issue-ID: VFC-1621
Signed-off-by: yangyan <yangyanyj@chinamobile.com>
ems/microservice-standalone/src/main/assembly/docker/docker-entrypoint.sh

index bb11d0e..0455dd6 100755 (executable)
@@ -15,7 +15,11 @@ echo "MSB_ADDR=$MSB_ADDR"
 # Wait for MSB initialization
 echo "Wait for MSB initialization"
 for i in {1..20}; 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