fixed windows build - removed test dep
This commit is contained in:
parent
13b5474cd8
commit
934700844c
5 changed files with 6 additions and 29 deletions
|
|
@ -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()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue