updates for testing and windows

This commit is contained in:
redanthrax 2022-06-15 20:04:57 -07:00
parent dfe2881cd5
commit 30123bc023
6 changed files with 26 additions and 2 deletions

View file

@ -41,7 +41,7 @@ func createAgentConfig(baseurl, agentid, apiurl, token, agentpk, cert, proxy, me
viper.Set("meshdir", meshdir)
viper.SetConfigPermissions(0660)
configLocation := "/etc/tacticalagent"
if strings.HasSuffix(os.Args[0], ".test") {
if shared.TEST {
configLocation = "tacticalagent"
}