mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2024-12-19 21:17:52 +00:00
updated entrypoint
This commit is contained in:
parent
0fd3afe2c8
commit
3e261fb999
@ -6,7 +6,7 @@ RUN mkdir -p /var/lib/zerotier-one/networks.d
|
||||
ADD *.conf /var/lib/zerotier-one/networks.d/
|
||||
ADD zerotier /
|
||||
ADD zerotier-cli /
|
||||
ADD .zerotierCliSettings /root/
|
||||
ADD .zerotierCliSettings /
|
||||
|
||||
# Install App
|
||||
ADD server.js /
|
||||
|
@ -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…
Reference in New Issue
Block a user