From f200862b1a0e3c42933f27dc72cd72d127a0cd5f Mon Sep 17 00:00:00 2001 From: wh1te909 Date: Sat, 12 Nov 2022 15:28:19 -0800 Subject: [PATCH] remove unused funcs --- main.go | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/main.go b/main.go index c6dd5c2..09d22f1 100644 --- a/main.go +++ b/main.go @@ -51,9 +51,6 @@ func main() { meshDir := flag.String("meshdir", "", "Path to custom meshcentral dir") meshNodeID := flag.String("meshnodeid", "", "Mesh Node ID") cert := flag.String("cert", "", "Path to domain CA .pem") - updateurl := flag.String("updateurl", "", "Download link to updater") - inno := flag.String("inno", "", "Inno setup file") - updatever := flag.String("updatever", "", "Update version") silent := flag.Bool("silent", false, "Do not popup any message boxes during installation") proxy := flag.String("proxy", "", "Use a http proxy") flag.Parse() @@ -127,12 +124,6 @@ func main() { return } a.RunTask(*taskPK) - case "update": - if *updateurl == "" || *inno == "" || *updatever == "" { - updateUsage() - return - } - a.AgentUpdate(*updateurl, *inno, *updatever) case "install": if runtime.GOOS != "windows" { u, err := user.Current() @@ -145,7 +136,6 @@ func main() { } if *api == "" || *clientID == 0 || *siteID == 0 || *token == "" { - installUsage() return } a.Install(&agent.Installer{ @@ -191,14 +181,3 @@ func setupLogging(level, to *string) { log.SetOutput(logFile) } } - -func installUsage() { - exe, _ := os.Executable() - u := fmt.Sprintf(`Usage: %s -m install -api -client-id X -site-id X -auth `, exe) - fmt.Println(u) -} - -func updateUsage() { - u := `Usage: tacticalrmm.exe -m update -updateurl https://example.com/tacticalagent-vX.X.X.exe -inno tacticalagent-vX.X.X.exe -updatever 1.1.1` - fmt.Println(u) -}