zt-kubernetes tutorial update

This commit is contained in:
Joseph Henry 2016-08-18 15:15:38 -07:00
parent 6443049f86
commit cf2ec0797e

View File

@ -15,7 +15,7 @@ dev=$(cat /var/lib/zerotier-one/identity.public| cut -d ':' -f 1)
echo '*** Joining' echo '*** Joining'
./zerotier-cli join "$nwid".conf ./zerotier-cli join "$nwid".conf
AUTHTOKEN=$(cat /var/lib/zerotier-one/authtoken.secret) AUTHTOKEN=$(cat /var/lib/zerotier-one/authtoken.secret)
sed "s|\local_service_auth_token|${AUTHTOKEN}|" .zerotierCliSettings > /root/.zerotierCliSettings sed "s|\local_service_auth_token_replaced_automatically|${AUTHTOKEN}|" .zerotierCliSettings > /root/.zerotierCliSettings
echo '*** Authorizing' echo '*** Authorizing'
./zerotier-cli net-auth @my.zerotier.com "$nwid" "$dev" ./zerotier-cli net-auth @my.zerotier.com "$nwid" "$dev"
node server.js node server.js