Update join-zt-network.sh

This commit is contained in:
Michael
2023-06-26 15:18:09 +01:00
committed by GitHub
parent f604ff5675
commit 296538116a

View File

@@ -65,12 +65,12 @@ sleep 3
# CALL API WITH INFO # CALL API WITH INFO
# #
curl -H "Authorization: Bearer $ZTAPIKEY" -X POST -d '{"name":"'"$ZTDEVICENAME"'","description":"Device authorised through Purple Script.","config":{"authorized":true}}' https://my.zerotier.com/api/network/$ZTNETID/member/$MYID curl -H "Authorization: Bearer $ZTAPIKEY" -X POST -d '{"name":"'"$ZTDEVICENAME"'","description":"Device authorised through Purple Script.","config":{"authorized":true}}' https://api.zerotier.com/api/v1/network/$ZTNETID/member/$MYID
curl -s -H "Authorization: Bearer $ZTAPIKEY" https://my.zerotier.com/api/network/$ZTNETID/member/$MYID curl -s -H "Authorization: Bearer $ZTAPIKEY" https://my.zerotier.com/api/network/$ZTNETID/member/$MYID
echo Status: Network authorised, ready to go! >> /var/tmp/depnotify.log echo Status: Network authorised, ready to go! >> /var/tmp/depnotify.log
touch /tmp/ztnetauthed.log touch /tmp/ztnetauthed.log
# #https://api.zerotier.com/api/v1/network
echo Command: ContinueButton: Close >> /var/tmp/depnotify.log echo Command: ContinueButton: Close >> /var/tmp/depnotify.log
sleep 10 sleep 10