mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-12-27 09:49:28 +08:00
fix: Fix the issue of snapshots not automatically restarting after restoration (#11087)
This commit is contained in:
parent
3b306f990a
commit
18c65c3096
1 changed files with 6 additions and 6 deletions
|
|
@ -129,18 +129,18 @@ func RestartPanel(core, agent, reload bool) {
|
|||
return
|
||||
}
|
||||
}
|
||||
if agent {
|
||||
if err := client.Operate("restart", "1panel-agent"); err != nil {
|
||||
global.LOG.Errorf("restart 1panel agent service failed, err: %v", err)
|
||||
return
|
||||
}
|
||||
}
|
||||
if core {
|
||||
if err := client.Operate("restart", "1panel-core"); err != nil {
|
||||
global.LOG.Errorf("restart 1panel core service failed, err: %v", err)
|
||||
return
|
||||
}
|
||||
}
|
||||
if agent {
|
||||
if err := client.Operate("restart", "1panel-agent"); err != nil {
|
||||
global.LOG.Errorf("restart 1panel agent service failed, err: %v", err)
|
||||
return
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
func LoadServiceName(keyword string) (string, error) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue