scripts/installer.sh: add support for PikaOS (#14461)

Fixes #14460

Signed-off-by: Erisa A <erisa@tailscale.com>
This commit is contained in:
Erisa A 2024-12-23 12:53:54 +00:00 committed by GitHub
parent 8d4ea4d90c
commit c4f9f955ab
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -165,6 +165,19 @@ main() {
VERSION="bullseye"
fi
;;
pika)
PACKAGETYPE="apt"
# All versions of PikaOS are new enough to prefer keyring
APT_KEY_TYPE="keyring"
# Older versions of PikaOS are based on Ubuntu rather than Debian
if [ "$VERSION_ID" -lt 4 ]; then
OS="ubuntu"
VERSION="$UBUNTU_CODENAME"
else
OS="debian"
VERSION="$DEBIAN_CODENAME"
fi
;;
centos)
OS="$ID"
VERSION="$VERSION_ID"