From 3e229e29cfe323054cd8b7e682ca270a3b4ecdef Mon Sep 17 00:00:00 2001 From: Michael <30936296+mtan93@users.noreply.github.com> Date: Tue, 16 Apr 2024 16:23:56 +0100 Subject: [PATCH] Update silent-auth-testing.sh --- Mac/silent-auth-testing.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Mac/silent-auth-testing.sh b/Mac/silent-auth-testing.sh index 4e85a64..d2bd843 100644 --- a/Mac/silent-auth-testing.sh +++ b/Mac/silent-auth-testing.sh @@ -155,8 +155,6 @@ else sleep 3 runAsUser osascript -e 'tell application "Tailscale"' -e 'activate' -e 'end tell' sleep 6 - runAsUser /Applications/Tailscale.app/Contents/MacOS/Tailscale up - # runAsUser /Applications/Tailscale.app/Contents/MacOS/Tailscale up --authkey "$TAILSCALEAUTHKEY" --hostname "$TSUSER" runAsUser /Applications/Tailscale.app/Contents/MacOS/Tailscale switch "$TAILSCALENET" sleep 1 runAsUser /Applications/Tailscale.app/Contents/MacOS/Tailscale set --hostname "$TSUSER" @@ -208,7 +206,7 @@ else curl -s --request POST "$HOOKHELPER" -H "Content-Type: application/json; charset=UTF-8" -d '{"tailnet": "'"$TAILSCALENET"'", "apikey": "'"$TAILSCALEAPIKEY"'", "targetname": "'"$OLDTSUSER"'"}' fi # sleep 2.5 - # runAsUser /Applications/Tailscale.app/Contents/MacOS/Tailscale up --authkey "$TAILSCALEAUTHKEY" --hostname "$TSUSER" + runAsUser /Applications/Tailscale.app/Contents/MacOS/Tailscale logout sleep 1.5 runAsUser /Applications/Tailscale.app/Contents/MacOS/Tailscale login --authkey "$TAILSCALEAUTHKEY" --hostname "$TSUSER" runAsUser /Applications/Tailscale.app/Contents/MacOS/Tailscale set --hostname "$TSUSER"