From c4f9f955ab281db35178a81b40c32c2828044f8f Mon Sep 17 00:00:00 2001 From: Erisa A Date: Mon, 23 Dec 2024 12:53:54 +0000 Subject: [PATCH] scripts/installer.sh: add support for PikaOS (#14461) Fixes #14460 Signed-off-by: Erisa A --- scripts/installer.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/scripts/installer.sh b/scripts/installer.sh index d2971978e..6e530fefe 100755 --- a/scripts/installer.sh +++ b/scripts/installer.sh @@ -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"