mirror of
https://github.com/PurpleComputing/Tailscale-scripts.git
synced 2026-09-17 03:10:38 +01:00
Update force-auth-fl.sh
This commit is contained in:
@@ -117,15 +117,17 @@ if [ "$PING2" -eq "1" ]; then
|
||||
else
|
||||
echo
|
||||
echo NO AUTH AUTHENTICATING...
|
||||
runAsUser /Applications/Tailscale.app/Contents/MacOS/Tailscale logout
|
||||
killall Tailscale
|
||||
sleep 2
|
||||
# runAsUser /Applications/Tailscale.app/Contents/MacOS/Tailscale logout
|
||||
# killall Tailscale
|
||||
# sleep 2
|
||||
runAsUser osascript -e 'tell application "Tailscale"' -e 'activate' -e 'end tell'
|
||||
sleep 3
|
||||
runAsUser /Applications/Tailscale.app/Contents/MacOS/Tailscale up --authkey "$TAILSCALEAUTHKEY" --hostname "$TSUSER" --reset
|
||||
runAsUser /Applications/Tailscale.app/Contents/MacOS/Tailscale up --authkey "$TAILSCALEAUTHKEY" --hostname "$TSUSER"
|
||||
echo
|
||||
fi
|
||||
|
||||
sleep 12
|
||||
|
||||
# PING TAILSCALE VPR AFTER FIRST ATTEMPT
|
||||
PING3=$(ping -c 1 "$IP2" | grep -c from)
|
||||
|
||||
@@ -145,7 +147,7 @@ else
|
||||
sleep 2
|
||||
runAsUser osascript -e 'tell application "Tailscale"' -e 'activate' -e 'end tell'
|
||||
sleep 3
|
||||
runAsUser /Applications/Tailscale.app/Contents/MacOS/Tailscale up --authkey "$TAILSCALEAUTHKEY" --hostname "$TSUSER" --reset
|
||||
runAsUser /Applications/Tailscale.app/Contents/MacOS/Tailscale up --authkey "$TAILSCALEAUTHKEY" --hostname "$TSUSER"
|
||||
echo
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user