mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-12-17 12:58:51 +08:00
chore: Remove system upgrade temporary files
This commit is contained in:
parent
7f9f4ae740
commit
047c37bed4
1 changed files with 1 additions and 0 deletions
|
|
@ -218,6 +218,7 @@ func (u *UpgradeService) Upgrade(req dto.Upgrade) error {
|
|||
_ = settingRepo.Update("SystemVersion", req.Version)
|
||||
_ = global.AgentDB.Model(&model.Setting{}).Where("key = ?", "SystemVersion").Updates(map[string]interface{}{"value": req.Version}).Error
|
||||
global.CONF.Base.Version = req.Version
|
||||
_ = os.RemoveAll(downloadDir)
|
||||
_ = settingRepo.Update("SystemStatus", "Free")
|
||||
|
||||
controller.RestartPanel(true, true, true)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue