Skip to content

Commit 60fef48

Browse files
authored
chore: Remove system upgrade temporary files (#11255)
Refs #11241
1 parent bb72ea0 commit 60fef48

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

core/app/service/upgrade.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,7 @@ func (u *UpgradeService) Upgrade(req dto.Upgrade) error {
218218
_ = settingRepo.Update("SystemVersion", req.Version)
219219
_ = global.AgentDB.Model(&model.Setting{}).Where("key = ?", "SystemVersion").Updates(map[string]interface{}{"value": req.Version}).Error
220220
global.CONF.Base.Version = req.Version
221+
_ = os.RemoveAll(downloadDir)
221222
_ = settingRepo.Update("SystemStatus", "Free")
222223

223224
controller.RestartPanel(true, true, true)

0 commit comments

Comments
 (0)