Update silent-oauth.sh

This commit is contained in:
Michael
2025-07-30 15:21:16 +01:00
committed by GitHub
parent fb2bc6c684
commit 2b0ea5af36

View File

@@ -94,8 +94,8 @@ sleep 3
runAsUser osascript -e 'tell application "Tailscale"' -e 'activate' -e 'end tell'
# GIVES TAILSCALE TIME TO OPEN AND CONNECT IF EMPLOYEE AUTHED
sleep 6
sleep 2
runAsUser /Applications/Tailscale.app/Contents/MacOS/Tailscale up --authkey "$TAILSCALEAUTHKEY" --hostname "$TSUSER" --advertise-tags=tag:$TSTAG --reset
# PING GOOGLE FOR NEXT CHECK
PING1=$(ping -c 1 "$IP1" | grep -c from)
sleep 2