Installs TS, key handling still missing

This commit is contained in:
ssn
2026-04-07 14:59:50 +02:00
parent 2cecafd956
commit 57d700be86

View File

@@ -160,5 +160,26 @@ function bitperfect_audio {
}
yes_or_no "Would you like to add support for high-res audio?" && bitperfect_audio ||
###Tailscale install
function tailscale_install {
###Will use the standard Tailscale installation script
###but also request an API key in order to generate
###a pre-auth key for auto-approving the new client.
###Todo:
####1) Request API key from user
####2) Use API key to generate auth key
####3) Run tailscale up --auth-key=$keywejustgot
#Install Tailscale but be quiet about it
#Script source is here: https://github.com/tailscale/tailscale/blob/main/scripts/installer.sh
curl -fsSL https://tailscale.com/install.sh | sh &> /dev/null
#Request an API key
read -p "Please enter your Tailscale API key: " tskey
}
yes_or_no "Would you like to install Tailscale?" && tailscale_install ||
###All done
echo "Script completed, please reboot."