Split install output into lines.

This commit is contained in:
Duncan Gibson
2023-07-12 17:54:45 -04:00
parent 07c00f3416
commit 9d806242cc

View File

@@ -16,18 +16,22 @@ pushd . > /dev/null
dir="$(mktemp -d)" dir="$(mktemp -d)"
cd "${dir}" cd "${dir}"
echo -n "Installing Tailscale: Getting version..." echo -n "Getting version..."
# get info for the latest version of Tailscale # get info for the latest version of Tailscale
tarball="$(curl -s 'https://pkgs.tailscale.com/stable/?mode=json' | jq -r .Tarballs.amd64)" tarball="$(curl -s 'https://pkgs.tailscale.com/stable/?mode=json' | jq -r .Tarballs.amd64)"
version="$(echo ${tarball} | cut -d_ -f2)" version="$(echo ${tarball} | cut -d_ -f2)"
echo -n "got ${version}. Downloading..." echo "got ${version}."
echo -n "Downloading..."
# download the Tailscale package itself # download the Tailscale package itself
curl -s "https://pkgs.tailscale.com/stable/${tarball}" -o tailscale.tgz curl -s "https://pkgs.tailscale.com/stable/${tarball}" -o tailscale.tgz
echo -n "done. Installing..." echo "done."
echo -n "Installing..."
# extract the tailscale binaries # extract the tailscale binaries
tar xzf tailscale.tgz tar xzf tailscale.tgz
@@ -53,6 +57,10 @@ cp -rf tailscale /var/lib/extensions/
popd > /dev/null popd > /dev/null
rm -rf "${dir}" rm -rf "${dir}"
echo "done."
echo -n "Starting services..."
systemctl enable systemd-sysext --now systemctl enable systemd-sysext --now
systemd-sysext refresh > /dev/null 2>&1 systemd-sysext refresh > /dev/null 2>&1
@@ -61,4 +69,6 @@ systemctl daemon-reload > /dev/null
systemctl enable tailscaled --now systemctl enable tailscaled --now
echo "done." echo "done."
echo "If updating, reboot or run the following to finish the process: sudo systemctl restart tailscaled" echo "If updating, reboot or run the following to finish the process: sudo systemctl restart tailscaled"