diff --git a/cmd/agent/main.go b/cmd/agent/main.go index 139fbf62f8..d5c0579ac9 100644 --- a/cmd/agent/main.go +++ b/cmd/agent/main.go @@ -98,7 +98,9 @@ func run() { ClientSecret: agentConf.ClientSecret, } - go pty.DownloadDependency() + if !agentConf.DisableCommandExecute { + go pty.DownloadDependency() + } // 上报服务器信息 go reportState() // 更新IP信息