From a19ac682ce20a470f5dbd32cbb8d4d8f0313c8e2 Mon Sep 17 00:00:00 2001 From: Michael <30936296+mtan93@users.noreply.github.com> Date: Thu, 8 Jun 2023 19:32:45 +0100 Subject: [PATCH] Update ts-force-auth.sh Added longer sleeps for app launch --- Helpers/ts-force-auth.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Helpers/ts-force-auth.sh b/Helpers/ts-force-auth.sh index 4b22691..6270936 100644 --- a/Helpers/ts-force-auth.sh +++ b/Helpers/ts-force-auth.sh @@ -66,7 +66,7 @@ fi runAsUser osascript -e 'tell application "Tailscale"' -e 'activate' -e 'end tell' # GIVES TAILSCALE TIME TO OPEN AND CONNECT IF EMPLOYEE AUTHED -sleep 10 +sleep 20 # PING GOOGLE FOR NEXT CHECK PING1=$(ping -c 1 "$IP1" | grep -c from) @@ -107,7 +107,7 @@ else killall Tailscale sleep 5 runAsUser osascript -e 'tell application "Tailscale"' -e 'activate' -e 'end tell' - sleep 5 + sleep 20 runAsUser /Applications/Tailscale.app/Contents/MacOS/Tailscale up --authkey "$TAILSCALEAUTHKEY" --reset echo fi @@ -131,7 +131,7 @@ else killall Tailscale sleep 5 runAsUser osascript -e 'tell application "Tailscale"' -e 'activate' -e 'end tell' - sleep 5 + sleep 20 runAsUser /Applications/Tailscale.app/Contents/MacOS/Tailscale up --authkey "$TAILSCALEAUTHKEY" --reset echo fi