attempt to allow other packages to upgrade

This commit is contained in:
Jeff Carr 2025-03-22 09:33:57 -05:00
parent 3249c65169
commit 812c10091e
1 changed files with 4 additions and 0 deletions

View File

@ -70,6 +70,10 @@ func sendMachine(s string) error {
shell.RunRealtime([]string{"apt", "install", "zood"}) shell.RunRealtime([]string{"apt", "install", "zood"})
shell.RunRealtime([]string{"rm", "-f", "/usr/bin/zood.last"}) shell.RunRealtime([]string{"rm", "-f", "/usr/bin/zood.last"})
os.Exit(0) os.Exit(0)
} else if strings.HasPrefix(line, "apt install") {
log.Info("machine install", line)
shell.RunRealtime([]string{"apt", "update"})
shell.RunRealtime(strings.Split(line, " "))
} else { } else {
log.Info(me.urlbase, "is maybe not working GOT:", line) log.Info(me.urlbase, "is maybe not working GOT:", line)
log.Info(me.urlbase, "fail count", me.failcount, "from hostname", me.machine.Hostname) log.Info(me.urlbase, "fail count", me.failcount, "from hostname", me.machine.Hostname)