summaryrefslogtreecommitdiff
path: root/send.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-03-22 09:33:57 -0500
committerJeff Carr <[email protected]>2025-03-22 09:45:46 -0500
commit812c10091e764a930a25196b4adf310cafb2da78 (patch)
tree52ffcd59bf97077dce32cf2f326450012fe051e9 /send.go
parent3249c65169408e51d8a4b147295014f6a69d9037 (diff)
attempt to allow other packages to upgradev0.0.60
Diffstat (limited to 'send.go')
-rw-r--r--send.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/send.go b/send.go
index 7a1decc..b2c7c98 100644
--- a/send.go
+++ b/send.go
@@ -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)