[agent-wdd] 完成Excecutor和Operator部分,完成base tools部分

This commit is contained in:
zeaslity
2025-02-14 17:17:55 +08:00
parent dabf63f10f
commit ce0395ae66
12 changed files with 380 additions and 23 deletions

View File

@@ -77,6 +77,13 @@ func (o *OS) Gather() {
o.Kernel = strings.TrimSpace(string(out))
}
// 检查包管理的方式
c := exec.Command("command", "-v", "apt")
_, err = c.Output()
if err == nil {
o.IsUbuntuType = true
}
// 获取系统架构
o.Arch = runtime.GOARCH
}