From 296538116a6185451df4384c7f6bb519cb6e5fb6 Mon Sep 17 00:00:00 2001 From: Michael <30936296+mtan93@users.noreply.github.com> Date: Mon, 26 Jun 2023 15:18:09 +0100 Subject: [PATCH] Update join-zt-network.sh --- Helpers/join-zt-network.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Helpers/join-zt-network.sh b/Helpers/join-zt-network.sh index 5982915..9e8882d 100644 --- a/Helpers/join-zt-network.sh +++ b/Helpers/join-zt-network.sh @@ -65,12 +65,12 @@ sleep 3 # 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 echo Status: Network authorised, ready to go! >> /var/tmp/depnotify.log touch /tmp/ztnetauthed.log -# +#https://api.zerotier.com/api/v1/network echo Command: ContinueButton: Close >> /var/tmp/depnotify.log sleep 10