feat: updates.Apply with security scope, window deadline, busy guard and captured output

This commit is contained in:
mrhid6 committed 2026-09-15 07:47:29 +00:00
1 parent 5f5e19e23e
commit 51b58fef21
5 files changed
+214 -25

No files matched your search

+1 -1
View File
@@ -482,7 +482,7 @@ func runInventory(ctx context.Context, cfg *config.Config) {
func handleApplyUpdates(cfg *config.Config, cmd *pb.ServerCommand) {
log.Printf("applying OS updates (cmd=%s)…", cmd.CommandId)
if err := updates.ApplyAll(); err != nil {
if _, err := updates.Apply(updates.ApplyOptions{}); err != nil {
log.Printf("OS upgrade failed (cmd=%s): %v", cmd.CommandId, err)
return
}