more winupdate fixes

This commit is contained in:
wh1te909
2021-02-02 09:42:12 +00:00
parent 97766b3a57
commit a92e2f3c7b
6 changed files with 53 additions and 8 deletions

View File

@@ -161,6 +161,13 @@ func Listen(apihost, natshost, version string, debug bool) {
rClient.R().SetBody(p).Patch("/winupdates/")
}
}()
case "superseded":
go func() {
var p *rmm.SupersededUpdate
if err := dec.Decode(&p); err == nil {
rClient.R().SetBody(p).Post("/superseded/")
}
}()
case "needsreboot":
go func() {
var p *rmm.AgentNeedsReboot