add hard restart for updates on *nix

reincarnates app.Restart() removed in
bbb0568cc4 as app.HardRestart().
This commit is contained in:
Harvey Tindall
2021-05-03 20:08:23 +01:00
parent b2b5083102
commit 0e21942cd6
6 changed files with 64 additions and 3 deletions
+5
View File
@@ -1788,7 +1788,12 @@ func (app *appContext) ApplyUpdate(gc *gin.Context) {
respondBool(500, false, gc)
return
}
if PLATFORM == "windows" {
respondBool(500, true, gc)
return
}
respondBool(200, true, gc)
app.HardRestart()
}
// @Summary Logout by deleting refresh token from cookies.