From 2f2a9ff5267fcf7aa58533fb830b49d96402b596 Mon Sep 17 00:00:00 2001 From: Michael <30936296+mtan93@users.noreply.github.com> Date: Wed, 22 Dec 2021 10:33:28 +0000 Subject: [PATCH] Update zt-auth.sh --- zt-auth.sh | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/zt-auth.sh b/zt-auth.sh index 43aae9a..37b02e7 100644 --- a/zt-auth.sh +++ b/zt-auth.sh @@ -9,18 +9,19 @@ # *****/ *****/ ()) # *****/ *****/ # - +# MAC SPECIFIC SCRIPT +# #//////////////////\\\\\\\\\\\\\\\\\\\\# #\\\\\\\\\\\\\\\\\\////////////////////# #//////////////////\\\\\\\\\\\\\\\\\\\\# #\\\\\\\\\\\\\\\\\\////////////////////# -###\\\\ INCOMPLETE DUE NOT TEST ////### +###\\\\ INCOMPLETE DO NOT TEST ////### #//////////////////\\\\\\\\\\\\\\\\\\\\# #\\\\\\\\\\\\\\\\\\////////////////////# #//////////////////\\\\\\\\\\\\\\\\\\\\# #\\\\\\\\\\\\\\\\\\////////////////////# - - +# +# ################################################################################################ @@ -30,7 +31,7 @@ NETID=[REPLACE WITH NET ID] APIKEY=[REPLACE WITH API KEY] # MYID=$(zerotier-cli info | cut -d " " -f 3) -DEVNAME=$(hostname -f) +DEVNAME=$(/usr/sbin/scutil --get ComputerName) DEVDESC=Device authorised through Purple Script. #Then call the API curl -H "Authorization: Bearer $APIKEY" -X POST -d '{"name":"$DEVNAME","description":"$DEVDESC","config":{"authorized":true}}' https://my.zerotier.com/api/network/$NETID/member/$MYID