Skip to content

Commit

Permalink
fix: Switch to using new key systems for bullseye derivatives (fixes #81
Browse files Browse the repository at this point in the history
)
  • Loading branch information
notheotherben committed Feb 25, 2024
1 parent 4d2ef63 commit 93a691a
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions package/unios_2.x.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,13 @@ _tailscale_install() {

tailscale_version="${1:-$(curl -sSLq --ipv4 "https://pkgs.tailscale.com/${TAILSCALE_CHANNEL}/?mode=json" | jq -r '.Tarballs.arm64 | capture("tailscale_(?<version>[^_]+)_").version')}"

echo "Installing latest Tailscale package repository key..."
curl -fsSL --ipv4 "https://pkgs.tailscale.com/${TAILSCALE_CHANNEL}/${ID}/${VERSION_CODENAME}.gpg" | apt-key add -

if [ ! -f "/etc/apt/sources.list.d/tailscale.list" ]; then
echo "Installing Tailscale package repository..."
echo "Installing latest Tailscale package repository..."
if [ "${VERSION_CODENAME}" = "stretch" ]; then
curl -fsSL --ipv4 "https://pkgs.tailscale.com/${TAILSCALE_CHANNEL}/${ID}/${VERSION_CODENAME}.gpg" | apt-key add -
curl -fsSL --ipv4 "https://pkgs.tailscale.com/${TAILSCALE_CHANNEL}/${ID}/${VERSION_CODENAME}.list" | tee /etc/apt/sources.list.d/tailscale.list
else
curl -fsSLo /usr/share/keyrings/tailscale-archive-keyring.gpg --ipv4 "https://pkgs.tailscale.com/${TAILSCALE_CHANNEL}/${ID}/${VERSION_CODENAME}.noarmor.gpg"
curl -fsSLo /etc/apt/sources.list.d/tailscale.list --ipv4 "https://pkgs.tailscale.com/${TAILSCALE_CHANNEL}/${ID}/${VERSION_CODENAME}.tailscale-keyring.list"
fi

echo "Updating package lists..."
Expand Down

0 comments on commit 93a691a

Please sign in to comment.