[ Agent ] [ App ] - offline build nfs server - 3

This commit is contained in:
zeaslity
2023-12-14 16:57:55 +08:00
parent 3784a24c38
commit fb3e109b75

View File

@@ -1115,6 +1115,13 @@ func (op *AgentOsOperator) installNFSOfflineExec() (bool, []string) {
if !ok {
return false, append(resultLog, "[installNFSOfflineExec]- download nfs-client offline package error !", nfsClientOfflinePackageOSSUrl)
}
AllCommandExecutor([]string{
"rm",
"-rf",
"/root/install/tmp",
})
// unzip
AllCommandExecutor([]string{
"tar",
@@ -1124,12 +1131,6 @@ func (op *AgentOsOperator) installNFSOfflineExec() (bool, []string) {
"/root/install",
})
AllCommandExecutor([]string{
"rm",
"-rf",
"/root/install/tmp",
})
// install
BasicPrettyPrint(HardCodeCommandExecutor("dpkg -i /root/install/tmp/nfs-client/*.deb"))
@@ -1229,6 +1230,12 @@ func (op *AgentOsOperator) installNFSServerOfflineExec() (bool, []string) {
return false, append(resultLog, "[installNFSServerOfflineExec]- download nfs-server offline package error !", nfsServerOfflinePackageOSSUrl)
}
AllCommandExecutor([]string{
"rm",
"-rf",
"/root/install/tmp",
})
// unzip
AllCommandExecutor([]string{
"tar",
@@ -1238,12 +1245,6 @@ func (op *AgentOsOperator) installNFSServerOfflineExec() (bool, []string) {
"/root/install",
})
AllCommandExecutor([]string{
"rm",
"-rf",
"/root/install/tmp",
})
// install
BasicPrettyPrint(HardCodeCommandExecutor(
"dpkg -i /root/install/tmp/nfs-server/*.deb",