summaryrefslogtreecommitdiffhomepage
path: root/scripts
diff options
context:
space:
mode:
authorErisa A <erisa@tailscale.com>2024-12-30 17:22:48 +0000
committerGitHub <noreply@github.com>2024-12-30 17:22:48 +0000
commit30d3e7b2429bc6e2226c365dd4e92f211e09147f (patch)
treed28febd32d5fbdcb6168f666810d3cd621e781ac /scripts
parentc43c5ca003d64a2250aafc4530cfb074be43d535 (diff)
downloadtailscale-30d3e7b2429bc6e2226c365dd4e92f211e09147f.tar.xz
tailscale-30d3e7b2429bc6e2226c365dd4e92f211e09147f.zip
scripts/install.sh: add special case for Parrot Security (#14487)
Their `os-release` doesn't follow convention. Fixes #10778 Signed-off-by: Erisa A <erisa@tailscale.com>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/installer.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/scripts/installer.sh b/scripts/installer.sh
index 8d1fc0212..bdd425539 100755
--- a/scripts/installer.sh
+++ b/scripts/installer.sh
@@ -68,6 +68,14 @@ main() {
if [ -z "${VERSION_ID:-}" ]; then
# rolling release. If you haven't kept current, that's on you.
APT_KEY_TYPE="keyring"
+ # Parrot Security is a special case that uses ID=debian
+ elif [ "$NAME" = "Parrot Security" ]; then
+ # All versions new enough to have this behaviour prefer keyring
+ # and their VERSION_ID is not consistent with Debian.
+ APT_KEY_TYPE="keyring"
+ # They don't specify the Debian version they're based off in os-release
+ # but Parrot 6 is based on Debian 12 Bookworm.
+ VERSION=bookworm
elif [ "$VERSION_ID" -lt 11 ]; then
APT_KEY_TYPE="legacy"
else