diff options
-rwxr-xr-x | ems/microservice-standalone/src/main/assembly/docker/docker-entrypoint.sh | 6 |
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 |