2
0
mirror of https://github.com/acepanel/panel.git synced 2026-02-05 09:17:18 +08:00

fix: 华为欧拉检查

This commit is contained in:
耗子
2024-10-17 13:51:41 +08:00
parent 4015c7e1bc
commit 4e6654af33

View File

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