[ Agent ] [ Initialization ] - modify Initialization process

This commit is contained in:
zeaslity
2023-11-08 16:26:53 +08:00
parent 892be0be88
commit ffe29993b3
2 changed files with 31 additions and 3 deletions

View File

@@ -1077,19 +1077,19 @@ func (op *AgentOsOperator) installHarborExec() (bool, []string) {
{
"sed",
"-i",
"s/HarborHostName/" + op.AgentServerInfo.ServerIPInV4 + "/g",
"s/$HarborHostName/" + op.AgentServerInfo.ServerIPInV4 + "/g",
"/root/wdd/harbor/harbor.yml",
},
{
"sed",
"-i",
"s/HarborHostPort/8033/g",
"s/$HarborHostPort/8033/g",
"/root/wdd/harbor/harbor.yml",
},
{
"sed",
"-i",
"s/HarborAdminPas/V2ryStr@ngPss/g",
"s/$HarborAdminPas/V2ryStr@ngPss/g",
"/root/wdd/harbor/harbor.yml",
}})