[ Agent ] [ App ] - offline build nfs server

This commit is contained in:
zeaslity
2023-12-14 16:36:24 +08:00
parent 889185f577
commit 9fca83c737
8 changed files with 37 additions and 22 deletions

View File

@@ -1202,6 +1202,13 @@ func (op *AgentOsOperator) installNfsServerOnlineExec() (bool, []string) {
func (op *AgentOsOperator) installNFSServerOfflineExec() (bool, []string) {
log.InfoF("[installNFSServerOfflineExec] - start to install nfs server offline !")
if !BasicCreateFolder("/root/install") {
return false, []string{
"[installNFSServerOfflineExec] - create install folder error !",
}
}
// check for version
executor, i := HardCodeCommandExecutor("grep PRETTY_NAME /etc/os-release | cut -d= -f2 | tr -d '\"' | sed 's/ /-/g'")
if !executor {

View File

@@ -38,7 +38,7 @@ octopus:
# agent执行一条Command的最长超时时间
processMaxTimeOut: 60
# ossOfflinePrefix: "https://oss-s1.107421.xyz"
ossOfflinePrefix: "http://OFFLINE_HOST_IP9000/octopus/"
ossOfflinePrefix: "http://OFFLINE_HOST_IP:9000/octopus/"
status:
app:
- Nginx/nginx