mirror of
https://github.com/acepanel/panel.git
synced 2026-02-05 09:17:18 +08:00
fix: 华为欧拉检查
This commit is contained in:
@@ -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 系统
|
||||
|
||||
Reference in New Issue
Block a user