Update silent-auth.sh

This commit is contained in:
Michael
2023-12-27 14:28:54 +00:00
committed by GitHub
parent 2d9ef3eed2
commit ea0f720ead

View File

@@ -174,9 +174,9 @@ else
sleep 5
runAsUser osascript -e 'tell application "Tailscale"' -e 'activate' -e 'end tell'
if [[ -z "$HOOKHELPER" ]]; then
echo No Webhooks to Fire. Continuing...
echo "• No Webhooks to Fire. Continuing..."
else
Cleaning up Existing Node
echo "• Cleaning up Existing Node"
curl -s --request POST "$HOOKHELPER" -H "Content-Type: application/json; charset=UTF-8" -d '{"tailnet": "'"$TAILSCALENET"'", "apikey": "'"$TAILSCALEAPIKEY"'", "targetname": "'"$TSUSER"'"}'
curl -s --request POST "$HOOKHELPER" -H "Content-Type: application/json; charset=UTF-8" -d '{"tailnet": "'"$TAILSCALENET"'", "apikey": "'"$TAILSCALEAPIKEY"'", "targetname": "'"$TSUNAME"'"}'
fi