From 4e6654af33317ffc05e890c7dda5c76387cacb25 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=80=97=E5=AD=90?= Date: Thu, 17 Oct 2024 13:51:41 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=8D=8E=E4=B8=BA=E6=AC=A7=E6=8B=89?= =?UTF-8?q?=E6=A3=80=E6=9F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkg/os/os.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkg/os/os.go b/pkg/os/os.go index 5f6fa502..8b8833d5 100644 --- a/pkg/os/os.go +++ b/pkg/os/os.go @@ -43,8 +43,10 @@ func IsRHEL() bool { if osRelease == nil { return false } + // hce Huawei Cloud EulerOS + // openEuler openEuler id, idLike := osRelease["ID"], osRelease["ID_LIKE"] - return id == "tencentos" || id == "opencloudos" || id == "rhel" || strings.Contains(idLike, "rhel") + return id == "tencentos" || id == "opencloudos" || id == "hce" || id == "openEuler" || id == "rhel" || strings.Contains(idLike, "rhel") } // IsUbuntu 判断是否是 Ubuntu 系统