enhance(upgrader): restart main proc manually and gracefully

This commit is contained in:
Jacky 2024-07-27 10:59:23 +08:00
parent 31bbab71c9
commit e72e8cef57
No known key found for this signature in database
GPG key ID: 215C21B10DF38B4D
3 changed files with 7 additions and 12 deletions

View file

@ -139,7 +139,7 @@ func PerformCoreUpgrade(c *gin.Context) {
return
}
// bye, overseer will restart nginx-ui
// bye, will restart nginx-ui in performCoreUpgrade
err = u.PerformCoreUpgrade(tarName)
if err != nil {
_ = ws.WriteJSON(CoreUpgradeResp{