fix(update): reload after confirming the accepted update is running

This commit is contained in:
Sycun committed 2026-11-13 10:05:42 +08:00
1 parent 18b4f82400
commit aa7a533497
14 files changed
+257 -106

No files matched your search

+2 -1
View File
@@ -22,6 +22,7 @@ import (
)
func main() {
updateActivation := app.TakeUpdateActivation()
updateSessions := app.TakeUpdateSessionHandoff()
var configPath = flag.String("config", "config.yaml", "Path to the configuration file")
var httpsBootstrap = flag.Bool("https", false, "Enable HTTPS for the main site; uses an in-memory self-signed certificate when no cert/key is configured")
@@ -157,7 +158,7 @@ func main() {
signal.Notify(sigCh, syscall.SIGINT, syscall.SIGTERM)
// 创建应用
application, err := app.New(cfg, log, cp)
application, err := app.New(cfg, log, cp, updateActivation)
if err != nil {
log.Fatal("应用初始化失败", "error", err)
}