瀏覽代碼

added additional informational messages to argument usage in zerotier docker image

Signed-off-by: Erik Hollensbe <[email protected]>
Erik Hollensbe 3 年之前
父節點
當前提交
2388c9f4e4
共有 1 個文件被更改,包括 6 次插入0 次删除
  1. 6 0
      entrypoint.sh.release

+ 6 - 0
entrypoint.sh.release

@@ -58,6 +58,12 @@ do
 
   zerotier-cli join "$i"
 
+  if [ $? -ne 0 ]
+  then
+    echo >&2 "ZeroTier could not be started; did you pass the right arguments to \`docker run\`?"
+    exit 1
+  fi
+
   while [ "$(zerotier-cli get $i status)" != "OK" ]
   do 
     echo "joining $i failed (are they added in central?); trying again in 1s"