mirror of
https://github.com/PurpleComputing/mdmscripts.git
synced 2026-02-03 14:13:27 +00:00
Update join-zt-network.sh
This commit is contained in:
@@ -66,7 +66,7 @@ sleep 3
|
||||
#
|
||||
|
||||
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://api.zerotier.com/api/v1/network/$ZTNETID/member/$MYID
|
||||
echo Status: Network authorised, ready to go! >> /var/tmp/depnotify.log
|
||||
touch /tmp/ztnetauthed.log
|
||||
|
||||
|
||||
Reference in New Issue
Block a user