Update linupx-scripts.sh

This commit is contained in:
2023-11-16 09:11:41 -06:00
parent b66e2ece44
commit 28721b85bd

View File

@@ -596,20 +596,22 @@ TAILSCALE_INSTALL() {
[Nn]) t=t;;
* )
echo
rm -f /usr/share/keyrings/tailscale-archive-keyring.gpg /etc/apt/sources.list.d/tailscale.list >/dev/null 2>&1
curl -fsSL https://pkgs.tailscale.com/stable/ubuntu/$(lsb_release --codename --short).noarmor.gpg | sudo tee /usr/share/keyrings/tailscale-archive-keyring.gpg >/dev/null
curl -fsSL https://pkgs.tailscale.com/stable/ubuntu/$(lsb_release --codename --short).tailscale-keyring.list | sudo tee /etc/apt/sources.list.d/tailscale.list
${APTFUNC} update
${APTFUNC} install tailscale -y
curl -fsSL https://tailscale.com/install.sh | sh
echo
read -n 1 -p "Tailscale is now installed, would you like to connect to https://headscale.scity.us (Y/n)?" choice
read -n 1 -p "Tailscale is now installed, would you like to connect to https://headscale.scity.us? (Y/n) " choice
case "$choice" in
[Nn]) y=y;;
[Nn])
read -n 1 -p "Would you like connect to Tailscale directly instead? (Y/n) " choice
case "$choice" in
[Nn]) temp='';;
* )
tailscale up --accept-dns=false --login-server=https://headscale.scity.us --accept-routes=false
tailscale up --accept-dns=false --accept-routes=false --accept-dns=false
;;
esac
;;
* )
tailscale up --accept-dns=false --accept-routes=false --accept-dns=false --login-server=https://headscale.scity.us
;;
esac
echo