[ 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 {