mirror of
https://github.com/ZeroTier/ZeroTierOne
synced 2025-08-20 21:33:57 -07:00
updated entrypoint
This commit is contained in:
parent
0fd3afe2c8
commit
3e261fb999
2 changed files with 3 additions and 3 deletions
|
@ -13,9 +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'
|
||||
AUTHTOKEN=$(cat /var/lib/zerotier-one/authtoken.secret)
|
||||
sed "s|\local_service_auth_token|${AUTHTOKEN}|" .zerotierCliSettings > /root/.zerotierCliSettings
|
||||
|
||||
./zerotier-cli join $(nwid).conf
|
||||
./zerotier-cli net-auth $(nwid) $(dev)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue