[ Agent ] [ Executor ] - 新增InstallHarbor部分

This commit is contained in:
zeaslity
2023-11-08 15:00:31 +08:00
parent ce108b2f4d
commit e6ee805fa5
2 changed files with 11 additions and 10 deletions

View File

@@ -967,7 +967,7 @@ func (op *AgentOsOperator) installHarbor() [][]string {
func (op *AgentOsOperator) installHarborExec() (bool, []string) {
// check docker-compose
if !BasicCommandExists("docker-compose") {
if !BasicFileExistAndNotNull("/usr/local/bin/docker-compose") {
return false, []string{
"docker-compose uninstalled ! can't install harbor!",
}