Update linupx-scripts.sh
This commit is contained in:
@@ -596,20 +596,22 @@ TAILSCALE_INSTALL() {
|
|||||||
[Nn]) t=t;;
|
[Nn]) t=t;;
|
||||||
* )
|
* )
|
||||||
echo
|
echo
|
||||||
|
curl -fsSL https://tailscale.com/install.sh | sh
|
||||||
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
|
|
||||||
echo
|
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
|
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
|
esac
|
||||||
echo
|
echo
|
||||||
|
|||||||
Reference in New Issue
Block a user