Update silent-oauth-eph.sh

This commit is contained in:
Michael
2025-08-19 07:54:39 +01:00
committed by GitHub
parent 148a4d4275
commit c5a7f49d1f

View File

@@ -207,7 +207,7 @@ else
curl -s --request POST "$HOOKHELPER" -H "Content-Type: application/json; charset=UTF-8" -d '{"tailnet": "'"$TAILSCALENET"'", "apikey": "'"$TAILSCALEAPIKEY"'", "targetname": "'"$OLDTSUSER"'"}'
fi
sleep 1
curl -s https://raw.githubusercontent.com/PurpleComputing/Tailscale-scripts/main/Mac/logout-all.sh | bash
#curl -s https://raw.githubusercontent.com/PurpleComputing/Tailscale-scripts/main/Mac/logout-all.sh | bash
#runAsUser defaults delete com.tailscale.ipn.macsys AuthKey && killall cfprefsd
runAsUser /Applications/Tailscale.app/Contents/MacOS/Tailscale up --authkey "$TAILSCALEAUTHKEY?ephemeral=true&preauthorized=true" --hostname "$TSUSER" --advertise-tags=tag:$TSTAG --reset
sleep 1