From 4eff2d65b5998faee17292d9508e2c80884903bd Mon Sep 17 00:00:00 2001 From: TrudeEH Date: Sat, 20 Jul 2024 20:43:07 +0100 Subject: [PATCH] Add tailscale --- install.sh | 14 +++++++++++++- server.sh | 14 +++++++++++++- 2 files changed, 26 insertions(+), 2 deletions(-) diff --git a/install.sh b/install.sh index bc61a137..9b000647 100755 --- a/install.sh +++ b/install.sh @@ -17,7 +17,8 @@ dialog --erase-on-exit \ "4" "Install GNOME Desktop" "on" \ "5" "Install GitHub CLI" "off"\ "6" "Install Ollama" "off"\ - "7" "Install Apps (Enables Flatpak)" "on" 2> choice.tmp + "7" "Install Apps (Enables Flatpak)" "on"\ + "8" "Install Tailscale (VPN)" "on" 2> choice.tmp main_menu=$( cat choice.tmp ) rm choice.tmp @@ -210,4 +211,15 @@ for selection in $main_menu; do flatpak install flathub $app done fi + + if [ "$selection" = "8" ]; then + clear + echo "-------------------------" + echo "--- Install Tailscale ---" + echo "-------------------------" + echo + echo + + curl -fsSL https://tailscale.com/install.sh | sh + fi done diff --git a/server.sh b/server.sh index ab532bf0..a0f798ae 100755 --- a/server.sh +++ b/server.sh @@ -13,7 +13,8 @@ dialog --erase-on-exit \ --checklist "Use the arrow keys and SPACE to select, then press ENTER." 30 90 5 \ "1" "Update OS" "on"\ "2" "Copy Dotfiles" "on"\ - "3" "Install CasaOS UI" "off" 2> choice.tmp + "3" "Install CasaOS UI" "off"\ + "4" "Install Tailscale (VPN)" "on" 2> choice.tmp main_menu=$( cat choice.tmp ) rm choice.tmp @@ -82,4 +83,15 @@ for selection in $main_menu; do sudo apt install -y curl curl -fsSL https://get.casaos.io | sudo bash fi + + if [ "$selection" = "4" ]; then + clear + echo "-------------------------" + echo "--- Install Tailscale ---" + echo "-------------------------" + echo + echo + + curl -fsSL https://tailscale.com/install.sh | sh + fi done