[ Agent ] [ Executor ] - fix bugs

This commit is contained in:
zeaslity
2023-11-07 15:14:38 +08:00
parent ebe0ca916d
commit 4c9a568086
3 changed files with 42 additions and 8 deletions

View File

@@ -628,6 +628,13 @@ func (op *AgentOsOperator) installDockerExec(args []string) (bool, []string) {
return false, append(log4, "apt-get update 失败!")
}
// 补充参数
if args == nil {
args = []string{
"20",
}
}
// ubuntu 内部
var specificDockerVersion string
// hard code here 5:20.10.10~3-0~ubuntu-focal
@@ -1338,10 +1345,6 @@ func (op *AgentOsOperator) installZSHExec() (bool, []string) {
"s/plugins=(git)/plugins=(git zsh-autosuggestions zsh-syntax-highlighting command-not-found z themes)/g",
"/root/.zshrc",
},
{
".",
"/root/.zshrc",
},
{
"chsh",
"-s",