diff --git a/Helpers/join-zt-network.sh b/Helpers/join-zt-network.sh index 69d6281..d017f96 100644 --- a/Helpers/join-zt-network.sh +++ b/Helpers/join-zt-network.sh @@ -65,7 +65,7 @@ sleep 3 # CALL API WITH INFO # echo BEFORE CURL -curl -H "Authorization: Bearer $ZTAPIKEY" -X POST -d '{"name":"'"%DeviceName%"'","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://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 touch /tmp/ztnetauthed.log