mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2026-09-22 00:00:50 +00:00
fix: Optimize 1pctl restore command output (#9355)
This commit is contained in:
@@ -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
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user