Update join-ts-network.sh

This commit is contained in:
Michael
2023-12-27 17:58:38 +00:00
committed by GitHub
parent 1644189cce
commit fdf6bd8595

View File

@@ -70,6 +70,7 @@ runAsUser /Applications/Tailscale.app/Contents/MacOS/Tailscale login --authkey $
/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"
sleep 3
runAsUser /Applications/Tailscale.app/Contents/MacOS/Tailscale logout
sleep 3
runAsUser /Applications/Tailscale.app/Contents/MacOS/Tailscale switch $TAILSCALENET
if [ -n "$ZTNETID" ]; then