[ Agent ] [ init ] - fix init bugs

This commit is contained in:
zeaslity
2024-01-19 16:07:25 +08:00
parent 3d53233211
commit 7b57a2a422
3 changed files with 1598 additions and 618 deletions

View File

@@ -39,7 +39,7 @@ func detectByAgentStatusInfo(os *AgentOsOperator) {
bytes, _ := json.Marshal(agentInfo)
log.DebugF("[detectByAgentStatusInfo] - agent info is => %s", string(bytes))
if strings.Contains(agentInfo.HostInfo.PlatformFamily, "centos") {
if strings.Contains(agentInfo.HostInfo.Platform, "openeuler") || strings.Contains(agentInfo.HostInfo.PlatformFamily, "platformFamily") {
// centos
os.IsOsTypeUbuntu = false
os.IsOsTypeCentOS = true