fix(update): remove source checkout dependency

Dashboard-initiated updates also retain a configured Telegram restart-report route, while falling back to the web UI report when Telegram is unavailable.
This commit is contained in:
sam committed 2026-08-25 03:28:37 +10:00
1 parent 24b50192f6
commit a27fb5f36e
7 files changed
+81 -29

No files matched your search

+4
View File
@@ -314,6 +314,10 @@ func (b *boot) setupObservability() {
}
b.web = &webui.Server{Store: b.st, Log: log, LogFeed: b.logFeed, TaskLogs: b.taskLogs, Cfg: config.NewHolder(cfg), Channels: b.channelManager, Events: bus}
b.web.UpdateReportPath = updateReportPath(cfg.WorkDir, "webui")
if cfg.Chat.Telegram.TokenEnv != "" && len(cfg.Chat.Telegram.AllowedUserIDs) > 0 {
b.web.TelegramUpdateReportPath = updateReportPath(cfg.WorkDir, cfg.BotUser)
b.web.TelegramUpdateChatID = cfg.Chat.Telegram.AllowedUserIDs[0]
}
agentStatus := b.agentStatus
b.web.RunningVersions = func() map[string]string { return daemonRunningVersions(agentStatus) }
b.web.SetProvenance(configProvenance)