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

feat: 校验后移除 checksums 文件

This commit is contained in:
耗子
2023-10-25 02:14:33 +08:00
parent 0e10823448
commit e96d95700a

View File

@@ -339,6 +339,7 @@ func UpdatePanel(panelInfo PanelInfo) error {
if check != panelInfo.DownloadName+": OK" {
return errors.New("下载文件校验失败")
}
Remove("/www/panel/" + panelInfo.Checksums)
color.Greenln("文件校验完成")
color.Greenln("更新新版本...")