summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoryangyan <yangyanyj@chinamobile.com>2020-02-18 09:05:51 +0800
committerYan Yang <yangyanyj@chinamobile.com>2020-02-18 02:06:26 +0000
commit265a39ce4648fb456853493e32824d7929d39195 (patch)
tree8bcf553c5c4e1386e0b8c98e8487897d112a617f
parentdff84cdbfea14122cef392e8d4c2d8b1e93951b3 (diff)
Fix problems accessing the MSB interface
Change-Id: Ie4deed6fbef015fa8f6292519e4b804e6ec4c43d Issue-ID: VFC-1621 Signed-off-by: yangyan <yangyanyj@chinamobile.com>
-rwxr-xr-xems/microservice-standalone/src/main/assembly/docker/docker-entrypoint.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/ems/microservice-standalone/src/main/assembly/docker/docker-entrypoint.sh b/ems/microservice-standalone/src/main/assembly/docker/docker-entrypoint.sh
index bb11d0e..0455dd6 100755
--- a/ems/microservice-standalone/src/main/assembly/docker/docker-entrypoint.sh
+++ b/ems/microservice-standalone/src/main/assembly/docker/docker-entrypoint.sh
@@ -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