scripts/installer.sh: add Miracle Linux as a RHEL derivative (#15671)

Fixes #15669
Signed-off-by: Erisa A <erisa@tailscale.com>
This commit is contained in:
Erisa A 2025-04-14 16:54:51 +01:00 committed by GitHub
parent 624c25bd49
commit 6502b7d667
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -208,8 +208,11 @@ main() {
PACKAGETYPE="yum" PACKAGETYPE="yum"
fi fi
;; ;;
rhel) rhel|miraclelinux)
OS="$ID" OS="$ID"
if [ "$ID" = "miraclelinux" ]; then
OS="rhel"
fi
VERSION="$(echo "$VERSION_ID" | cut -f1 -d.)" VERSION="$(echo "$VERSION_ID" | cut -f1 -d.)"
PACKAGETYPE="dnf" PACKAGETYPE="dnf"
if [ "$VERSION" = "7" ]; then if [ "$VERSION" = "7" ]; then