[ Agent ] [ App ] - offline build nfs server
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user