[agent-deploy] - xzyd project
This commit is contained in:
@@ -353,7 +353,7 @@ func (op *AgentOsOperator) deployTestNFS(funcArgs []string) (bool, []string) {
|
||||
}
|
||||
|
||||
// 下载模板文件
|
||||
k8sNFSYamlFile := "/root/wdd/install/k8s-nfs-test.json"
|
||||
k8sNFSYamlFile := "/root/wdd/install/k8s-nfs-test.yaml"
|
||||
ok, resultLog := BasicDownloadFileByCurl(op.OssOfflinePrefix+nfsTemplateFile, k8sNFSYamlFile)
|
||||
if !ok {
|
||||
return false, resultLog
|
||||
|
||||
@@ -862,13 +862,15 @@ func (op *AgentOsOperator) installDockerExec(args []string) (bool, []string) {
|
||||
// todo ubuntu 22.04
|
||||
|
||||
// ubuntu 内部
|
||||
var specificDockerVersion string
|
||||
//var specificDockerVersion string
|
||||
// hard code here 5:20.10.10~3-0~ubuntu-focal
|
||||
if strings.HasPrefix(args[0], "19") {
|
||||
specificDockerVersion = "5:19.03.15~3-0~ubuntu-" + op.AgentOSReleaseCode
|
||||
} else {
|
||||
specificDockerVersion = "5:20.10.10~3-0~ubuntu-" + op.AgentOSReleaseCode
|
||||
}
|
||||
//if strings.HasPrefix(args[0], "19") {
|
||||
// specificDockerVersion = "5:19.03.15~3-0~ubuntu-" + op.AgentOSReleaseCode
|
||||
//} else {
|
||||
//
|
||||
//}
|
||||
|
||||
specificDockerVersion := "5:20.10.10~3-0~ubuntu-" + op.AgentOSReleaseCode
|
||||
|
||||
log.InfoF("需要安装的docker版本为 => %s", specificDockerVersion)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user