mirror of
https://github.com/acepanel/panel.git
synced 2026-02-04 07:57:21 +08:00
feat: 校验后移除 checksums 文件
This commit is contained in:
@@ -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("更新新版本...")
|
||||
|
||||
Reference in New Issue
Block a user