move update functions to agent / hub packages

This commit is contained in:
Henry Dollman
2024-10-10 18:36:01 -04:00
parent efca56ceca
commit 5b0fac429b
4 changed files with 62 additions and 51 deletions

View File

@@ -3,7 +3,6 @@ package main
import (
"beszel"
"beszel/internal/agent"
"beszel/internal/update"
"fmt"
"log"
"os"
@@ -17,7 +16,7 @@ func main() {
case "-v":
fmt.Println(beszel.AppName+"-agent", beszel.Version)
case "update":
update.UpdateBeszelAgent()
agent.Update()
}
os.Exit(0)
}