diff --git a/agent-wdd/op/Excutor.go b/agent-wdd/op/Excutor.go index 9a6b03e..4cd20b8 100644 --- a/agent-wdd/op/Excutor.go +++ b/agent-wdd/op/Excutor.go @@ -162,14 +162,14 @@ func PipeLineCommandExecutor(pipeLineCommand [][]string) (ok bool, resultLog []s } // HardCodeCommandExecutor 执行硬编码命令,返回执行结果和输出内容 -// hardCodeCommand: 硬编码命令,如 []string{"echo", "hello"} +// hardCodeCommand: 硬编码命令,如 "echo hello" // 返回值: // // bool - 命令是否执行成功(true为成功,false为失败) // []string - 合并后的标准输出和标准错误内容(按行分割) func HardCodeCommandExecutor(hardCodeCommand string) (ok bool, resultLog []string) { - log.Info("[Excutor] - start => %v", hardCodeCommand) + log.Info("[HardCodeCommandExecutor] - start => %v", hardCodeCommand) if hardCodeCommand == "" { return false, nil diff --git a/agent-wdd/test/run_test.sh b/agent-wdd/test/run_test.sh index be780fd..06ef3ee 100644 --- a/agent-wdd/test/run_test.sh +++ b/agent-wdd/test/run_test.sh @@ -17,7 +17,13 @@ cat /usr/local/etc/wdd/agent-wdd-config.yaml -bash /usr/local/bin/test-shell.sh +/usr/local/bin/agent-wdd base firewall + +/usr/local/bin/agent-wdd proxy xray install +/usr/local/bin/agent-wdd proxy vmess 22443 + + +#bash /usr/local/bin/test-shell.sh @@ -53,7 +59,7 @@ bash /usr/local/bin/test-shell.sh /usr/local/bin/agent-wdd download https://pan.107421.xyz/d/oracle-osaka-1/docker-amd64-20.10.15.tgz /root/wdd -/usr/local/bin/agent-wdd proxy install +/usr/local/bin/agent-wdd proxy xray install /usr/local/bin/agent-wdd proxy vmess 22443