fix: Optimize 1pctl restore command output (#9355)

This commit is contained in:
ssongliu 2025-07-01 11:51:33 +08:00 committed by GitHub
parent 5c29c5e7dd
commit 45c41184c1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -87,6 +87,12 @@ var restoreCmd = &cobra.Command{
fmt.Println(i18n.GetMsgByKeyForCmd("RestoreStep5"))
fmt.Println(i18n.GetMsgByKeyForCmd("RestoreSuccessful"))
_, _ = cmdUtils.RunDefaultWithStdoutBashC("systemctl daemon-reload")
std, err := cmdUtils.RunDefaultWithStdoutBashC("1pctl restart all")
if err != nil {
fmt.Println(std)
}
return nil
},
}