From 57d700be862f64a22a79dd55c66368dd094dcf6b Mon Sep 17 00:00:00 2001 From: ssn Date: Tue, 7 Apr 2026 14:59:50 +0200 Subject: [PATCH] Installs TS, key handling still missing --- fedora_post_install.sh | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/fedora_post_install.sh b/fedora_post_install.sh index 7ff19f1..733420d 100644 --- a/fedora_post_install.sh +++ b/fedora_post_install.sh @@ -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." \ No newline at end of file