diff options
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 |