fixed windows build - removed test dep

This commit is contained in:
redanthrax 2022-06-17 10:16:36 -07:00
parent 13b5474cd8
commit 934700844c
5 changed files with 6 additions and 29 deletions

View file

@ -23,7 +23,6 @@ import (
"strings"
"time"
"github.com/amidaware/rmmagent/shared"
"github.com/go-resty/resty/v2"
trmm "github.com/wh1te909/trmm-shared"
)
@ -253,15 +252,10 @@ func (a *Agent) Install(i *Installer) {
a.Logger.Infoln("Starting service...")
out := a.ControlService(winSvcName, "start")
if shared.TEST {
goto SKIPSTART;
}
if !out.Success {
a.installerMsg(out.ErrorMsg, "error", i.Silent)
}
SKIPSTART: a.Logger.Infoln("Skipping service start in test.")
a.Logger.Infoln("Adding windows defender exclusions")
a.addDefenderExlusions()