2
0
mirror of https://github.com/acepanel/panel.git synced 2026-02-04 11:27:17 +08:00

feat: 移除openEuler兼容

This commit is contained in:
2025-09-06 17:13:59 +08:00
parent 60ef754091
commit ad77920f63

View File

@@ -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 系统