瀏覽代碼

examples files for kube int

Joseph Henry 9 年之前
父節點
當前提交
0fd3afe2c8
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      doc/ext/kubernetes/entrypoint.sh

+ 3 - 0
doc/ext/kubernetes/entrypoint.sh

@@ -13,6 +13,9 @@ echo '*** Up and running at' $virtip4 ' on network: ' $nwid
 echo '*** Self-Authorizing to deployment network'
 nwconf=$(ls *.conf)
 nwid="${nwconf%.*}"
+AUTHTOKEN="(cat /var/lib/zerotier-one/authtoken.secret)"
+
+grep -rl 'local_service_auth_token' ./ | xargs sed -i 's/local_service_auth_token/' $AUTHTOKEN '/g'
 
 ./zerotier-cli join $(nwid).conf
 ./zerotier-cli net-auth $(nwid) $(dev)