summaryrefslogtreecommitdiffstats
path: root/mgr/docker/docker-entrypoint.sh
diff options
context:
space:
mode:
Diffstat (limited to 'mgr/docker/docker-entrypoint.sh')
-rwxr-xr-xmgr/docker/docker-entrypoint.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/mgr/docker/docker-entrypoint.sh b/mgr/docker/docker-entrypoint.sh
index ecdd938..55e6890 100755
--- a/mgr/docker/docker-entrypoint.sh
+++ b/mgr/docker/docker-entrypoint.sh
@@ -20,7 +20,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