From 9e862c34cfad114710bfe1f8c2c146680793e515 Mon Sep 17 00:00:00 2001 From: Michael <30936296+mtan93@users.noreply.github.com> Date: Wed, 21 May 2025 17:40:15 +0100 Subject: [PATCH] Update and rename join-ts-int-oauth.sh to join-ts-oauth-v1.sh --- join-ts-int-oauth.sh => join-ts-oauth-v1.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename join-ts-int-oauth.sh => join-ts-oauth-v1.sh (95%) diff --git a/join-ts-int-oauth.sh b/join-ts-oauth-v1.sh similarity index 95% rename from join-ts-int-oauth.sh rename to join-ts-oauth-v1.sh index de17c53..490d3f5 100644 --- a/join-ts-int-oauth.sh +++ b/join-ts-oauth-v1.sh @@ -64,7 +64,7 @@ end tell EOF #runAsUser /Applications/Tailscale.app/Contents/MacOS/Tailscale logout sleep 2 -runAsUser /Applications/Tailscale.app/Contents/MacOS/Tailscale login --authkey "'"$TAILSCALEAUTHKEY?ephemeral=true&preauthorized=true"'" --hostname "purplesupportsession-ticket-$ZDTICKETRAW-engineer-$TSENGINEER" --advertise-tags="tag:$TSTAG" +runAsUser /Applications/Tailscale.app/Contents/MacOS/Tailscale login --authkey "$TAILSCALEAUTHKEY?ephemeral=true&preauthorized=true" --hostname "purplesupportsession-ticket-$ZDTICKETRAW-engineer-$TSENGINEER" --advertise-tags="tag:$TSTAG" runAsUser /Applications/Tailscale.app/Contents/MacOS/Tailscale set --hostname "purplesupportsession-ticket-$ZDTICKETRAW-engineer-$TSENGINEER" /usr/local/bin/dialog dialog --title "Tailscale Session Started" --message "**Session Control**\n\n Your session will end automatically based on the countdown below. \n\n **Leave this window open in the background whilst you are working...**" --alignment centre --centericon --big --icon warning --overlayicon "/Applications/Tailscale.app" --button1text "End Session Now" --timer $SESSIONEXPIRY --button1shellaction "launchctl asuser $(id -u "$currentUser") /Applications/Tailscale.app/Contents/MacOS/Tailscale logout"