[ Agent ] [ App ] - offline build nfs server - 3
This commit is contained in:
@@ -1115,6 +1115,13 @@ func (op *AgentOsOperator) installNFSOfflineExec() (bool, []string) {
|
|||||||
if !ok {
|
if !ok {
|
||||||
return false, append(resultLog, "[installNFSOfflineExec]- download nfs-client offline package error !", nfsClientOfflinePackageOSSUrl)
|
return false, append(resultLog, "[installNFSOfflineExec]- download nfs-client offline package error !", nfsClientOfflinePackageOSSUrl)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
AllCommandExecutor([]string{
|
||||||
|
"rm",
|
||||||
|
"-rf",
|
||||||
|
"/root/install/tmp",
|
||||||
|
})
|
||||||
|
|
||||||
// unzip
|
// unzip
|
||||||
AllCommandExecutor([]string{
|
AllCommandExecutor([]string{
|
||||||
"tar",
|
"tar",
|
||||||
@@ -1124,12 +1131,6 @@ func (op *AgentOsOperator) installNFSOfflineExec() (bool, []string) {
|
|||||||
"/root/install",
|
"/root/install",
|
||||||
})
|
})
|
||||||
|
|
||||||
AllCommandExecutor([]string{
|
|
||||||
"rm",
|
|
||||||
"-rf",
|
|
||||||
"/root/install/tmp",
|
|
||||||
})
|
|
||||||
|
|
||||||
// install
|
// install
|
||||||
BasicPrettyPrint(HardCodeCommandExecutor("dpkg -i /root/install/tmp/nfs-client/*.deb"))
|
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)
|
return false, append(resultLog, "[installNFSServerOfflineExec]- download nfs-server offline package error !", nfsServerOfflinePackageOSSUrl)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
AllCommandExecutor([]string{
|
||||||
|
"rm",
|
||||||
|
"-rf",
|
||||||
|
"/root/install/tmp",
|
||||||
|
})
|
||||||
|
|
||||||
// unzip
|
// unzip
|
||||||
AllCommandExecutor([]string{
|
AllCommandExecutor([]string{
|
||||||
"tar",
|
"tar",
|
||||||
@@ -1238,12 +1245,6 @@ func (op *AgentOsOperator) installNFSServerOfflineExec() (bool, []string) {
|
|||||||
"/root/install",
|
"/root/install",
|
||||||
})
|
})
|
||||||
|
|
||||||
AllCommandExecutor([]string{
|
|
||||||
"rm",
|
|
||||||
"-rf",
|
|
||||||
"/root/install/tmp",
|
|
||||||
})
|
|
||||||
|
|
||||||
// install
|
// install
|
||||||
BasicPrettyPrint(HardCodeCommandExecutor(
|
BasicPrettyPrint(HardCodeCommandExecutor(
|
||||||
"dpkg -i /root/install/tmp/nfs-server/*.deb",
|
"dpkg -i /root/install/tmp/nfs-server/*.deb",
|
||||||
|
|||||||
Reference in New Issue
Block a user