mirror of
https://github.com/acepanel/panel.git
synced 2026-02-04 09:13:49 +08:00
feat: 补全更多cli命令
This commit is contained in:
@@ -62,12 +62,7 @@ func GetMonitoringInfo() MonitoringInfo {
|
||||
|
||||
func RestartPanel() {
|
||||
color.Greenln("重启面板...")
|
||||
err := shell.ExecfAsync("sleep 2 && systemctl restart panel")
|
||||
if err != nil {
|
||||
color.Redln("重启失败")
|
||||
return
|
||||
}
|
||||
|
||||
_ = shell.ExecfAsync("sleep 1 && systemctl restart panel")
|
||||
color.Greenln("重启完成")
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user