diff --git a/linupx-scripts.sh b/linupx-scripts.sh index 0db0c93..d8bcfe8 100755 --- a/linupx-scripts.sh +++ b/linupx-scripts.sh @@ -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