From ad77920f63e29e1a02d34b58646c55da5bb24eab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=80=97=E5=AD=90?= Date: Sat, 6 Sep 2025 17:13:59 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E7=A7=BB=E9=99=A4openEuler=E5=85=BC?= =?UTF-8?q?=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkg/os/os.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/os/os.go b/pkg/os/os.go index 39c3da8f..135b8666 100644 --- a/pkg/os/os.go +++ b/pkg/os/os.go @@ -47,10 +47,11 @@ func IsRHEL() bool { if osRelease == nil { return false } + // alinux Alibaba Cloud Linux // hce Huawei Cloud EulerOS // openEuler openEuler id, idLike := osRelease["ID"], osRelease["ID_LIKE"] - return id == "tencentos" || id == "opencloudos" || id == "hce" || id == "openEuler" || id == "rhel" || strings.Contains(idLike, "rhel") + return id == "rhel" || id == "almalinux" || id == "rocky" || id == "alinux" || id == "tencentos" || id == "opencloudos" || strings.Contains(idLike, "rhel") } // IsUbuntu 判断是否是 Ubuntu 系统