From 82405e651fd0b0b622e2d7aef97a1d106e57cbd0 Mon Sep 17 00:00:00 2001 From: Game <76461912+noigamegun@users.noreply.github.com> Date: Sun, 28 Apr 2024 18:39:48 +0700 Subject: [PATCH 1/2] Update tailscale.sh --- tailscale.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tailscale.sh b/tailscale.sh index 1b26937..96d968a 100644 --- a/tailscale.sh +++ b/tailscale.sh @@ -24,7 +24,7 @@ echo "got ${version}." echo -n "Downloading..." # download the Tailscale package itself -curl -s "https://pkgs.tailscale.com/stable/${tarball}" -o tailscale.tgz +wget -O tailscale.tgz "https://pkgs.tailscale.com/stable/${tarball}" echo "done." @@ -127,4 +127,4 @@ if ! command -v tailscale &> /dev/null; then echo fi -echo "Installation Complete." \ No newline at end of file +echo "Installation Complete." From 336b668d0a8ecd8e53ff4fdecc20a27f0cb69d39 Mon Sep 17 00:00:00 2001 From: Duncan Gibson Date: Sun, 28 Apr 2024 10:07:01 -0400 Subject: [PATCH 2/2] Tweak visual output --- tailscale.sh | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/tailscale.sh b/tailscale.sh index 96d968a..702f166 100644 --- a/tailscale.sh +++ b/tailscale.sh @@ -21,12 +21,10 @@ version="$(echo ${tarball} | cut -d_ -f2)" echo "got ${version}." -echo -n "Downloading..." +echo "Downloading:" # download the Tailscale package itself -wget -O tailscale.tgz "https://pkgs.tailscale.com/stable/${tarball}" - -echo "done." +wget -q --show-progress -O tailscale.tgz "https://pkgs.tailscale.com/stable/${tarball}" echo -n "Removing Legacy Installations..." @@ -114,15 +112,15 @@ else fi # This needs to be the last thing we do in case the user's running this over Tailscale SSH. -systemctl restart tailscaled &>/dev/null || echo "ERROR: Could not start tailscaled service" +systemctl restart tailscaled &>/dev/null || echo "ERROR: Could not start tailscaled service" echo "done." if ! command -v tailscale &> /dev/null; then - echo + echo echo "Tailscale is installed and running but the binaries are not in your path yet." echo "Restart your session or run the following command to add them:" - echo + echo echo "source /etc/profile.d/tailscale.sh" echo fi