diff options
| author | Jeff Carr <[email protected]> | 2025-03-22 09:33:57 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-03-22 09:45:46 -0500 |
| commit | 812c10091e764a930a25196b4adf310cafb2da78 (patch) | |
| tree | 52ffcd59bf97077dce32cf2f326450012fe051e9 | |
| parent | 3249c65169408e51d8a4b147295014f6a69d9037 (diff) | |
attempt to allow other packages to upgradev0.0.60
| -rw-r--r-- | send.go | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -70,6 +70,10 @@ func sendMachine(s string) error { shell.RunRealtime([]string{"apt", "install", "zood"}) shell.RunRealtime([]string{"rm", "-f", "/usr/bin/zood.last"}) 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 { log.Info(me.urlbase, "is maybe not working GOT:", line) log.Info(me.urlbase, "fail count", me.failcount, "from hostname", me.machine.Hostname) |
