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

fix: restart panel after update

This commit is contained in:
耗子
2024-10-13 01:37:43 +08:00
parent 787bb80355
commit 0af6b22862

View File

@@ -280,6 +280,7 @@ func (r *settingRepo) UpdatePanel(version, url, checksum string) error {
color.Greenln("升级完成")
_, _ = shell.Execf("systemctl daemon-reload")
_, _ = shell.Execf("systemctl restart panel")
_ = io.Remove("/tmp/panel-storage.zip")
_ = io.Remove(filepath.Join(app.Root, "panel/config.example.yml"))