2
0
mirror of https://github.com/acepanel/panel.git synced 2026-02-04 09:13:49 +08:00

feat: 补全更多cli命令

This commit is contained in:
耗子
2024-10-12 12:59:58 +08:00
parent 497e357d65
commit ff3b755faa
7 changed files with 187 additions and 36 deletions

View File

@@ -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("重启完成")
}