trigger apt upgrade
This commit is contained in:
parent
e85a8ae69f
commit
76c5626d0a
|
@ -54,7 +54,12 @@ func handleMachine(r *http.Request, w http.ResponseWriter, hostname string, data
|
|||
log.Info("hostname ua changed len =", len(data), ra, hostname, ua)
|
||||
m.UserAgent = ua
|
||||
}
|
||||
fmt.Fprintln(w, "upgrade")
|
||||
if m.Upgrade {
|
||||
fmt.Fprintln(w, "apt update")
|
||||
m.Upgrade = false
|
||||
} else {
|
||||
fmt.Fprintln(w, "upgrade")
|
||||
}
|
||||
// log.Info("update machine protobuf", hostname)
|
||||
updateMachine(newm)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue