mirror of
https://github.com/ZeroTier/ZeroTierOne
synced 2025-08-14 02:27:38 -07:00
Kube tut update
This commit is contained in:
parent
9827b8991d
commit
af53e63ae2
4 changed files with 155 additions and 113 deletions
|
@ -5,7 +5,6 @@ chown -R daemon /var/lib/zerotier-one
|
|||
chgrp -R daemon /var/lib/zerotier-one
|
||||
su daemon -s /bin/bash -c '/zerotier-one -d -U -p9993 >>/tmp/zerotier-one.out 2>&1'
|
||||
dev=""
|
||||
|
||||
nwconf=$(ls *.conf)
|
||||
nwid="${nwconf%.*}"
|
||||
|
||||
|
@ -14,8 +13,11 @@ dev=$(cat /var/lib/zerotier-one/identity.public| cut -d ':' -f 1)
|
|||
|
||||
echo '*** Joining'
|
||||
./zerotier-cli join "$nwid".conf
|
||||
# Fill out local service auth token
|
||||
AUTHTOKEN=$(cat /var/lib/zerotier-one/authtoken.secret)
|
||||
sed "s|\local_service_auth_token_replaced_automatically|${AUTHTOKEN}|" .zerotierCliSettings > /root/.zerotierCliSettings
|
||||
echo '*** Authorizing'
|
||||
./zerotier-cli net-auth @my.zerotier.com "$nwid" "$dev"
|
||||
echo '*** Cleaning up' # Remove controller auth token
|
||||
rm -rf .zerotierCliSettings /root/.zerotierCliSettings
|
||||
node server.js
|
Loading…
Add table
Add a link
Reference in a new issue