浏览代码

fix(docker): exit codes above 255 are invalid

Peter Thomassen 9 年之前
父节点
当前提交
f616145d19
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      entrypoint.sh

+ 1 - 1
entrypoint.sh

@@ -1,5 +1,5 @@
 #!/bin/bash
 
-host=db; port=3306; n=120; i=0; while ! (echo > /dev/tcp/$host/$port) 2> /dev/null; do [[ $i -eq $n ]] && >&2 echo "$host:$port not up after $n seconds, exiting" && exit $port; echo "waiting for $host:$port to come up"; sleep 1; i=$((i+1)); done
+host=db; port=3306; n=120; i=0; while ! (echo > /dev/tcp/$host/$port) 2> /dev/null; do [[ $i -eq $n ]] && >&2 echo "$host:$port not up after $n seconds, exiting" && exit 1; echo "waiting for $host:$port to come up"; sleep 1; i=$((i+1)); done
 
 pdns_server --daemon=no