Refine Command Execution and Test Script
- Updated HardCodeCommandExecutor logging to use more descriptive log prefix - Modified run_test.sh to streamline proxy and firewall configuration commands - Removed commented test shell script execution - Simplified proxy installation commands
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user