fix: Fix the problem of the failure of 1pctl update port (#9199)

This commit is contained in:
ssongliu 2025-06-20 14:45:13 +08:00 committed by GitHub
parent bb99853000
commit cf230ca6e7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -209,7 +209,7 @@ func port() {
fmt.Println("\n" + i18n.GetMsgByKeyForCmd("UpdateSuccessful"))
fmt.Println(i18n.GetMsgWithMapForCmd("UpdatePortResult", map[string]interface{}{"name": newPortStr}))
std, err := cmd.RunDefaultWithStdoutBashC("1pctl restart")
std, err := cmd.RunDefaultWithStdoutBashC("1pctl restart core")
if err != nil {
fmt.Println(std)
}