【agent-go】- 修改文件打开指令
This commit is contained in:
@@ -4,7 +4,9 @@ import (
|
||||
"fmt"
|
||||
"net"
|
||||
"os"
|
||||
"path/filepath"
|
||||
"strings"
|
||||
|
||||
"wdd.io/agent-go/a_agent"
|
||||
"wdd.io/agent-go/a_executor/beans"
|
||||
)
|
||||
@@ -962,7 +964,7 @@ func (op *AgentOsOperator) InstallDockerBastion() (bool, []string) {
|
||||
|
||||
BasicRemoveFolderComplete("/root/wdd/docker")
|
||||
|
||||
dockerLocalFile := OctopusAgentInstallPrefix + dockerOfflineFileName
|
||||
dockerLocalFile := filepath.Join(OctopusAgentInstallPrefix, dockerOfflineFileName)
|
||||
if !BasicFileExistAndNotNull(dockerLocalFile) {
|
||||
sprintf := fmt.Sprintf("docker offline file not exists ! => %s", dockerLocalFile)
|
||||
log.Error(sprintf)
|
||||
@@ -974,7 +976,7 @@ func (op *AgentOsOperator) InstallDockerBastion() (bool, []string) {
|
||||
"-vxf",
|
||||
dockerLocalFile,
|
||||
"-C",
|
||||
"/root/wdd",
|
||||
"/root/wdd/",
|
||||
})
|
||||
|
||||
HardCodeCommandExecutor("chmod 777 -R /root/wdd/docker/*")
|
||||
|
||||
Reference in New Issue
Block a user