updates for testing and windows
This commit is contained in:
parent
dfe2881cd5
commit
30123bc023
6 changed files with 26 additions and 2 deletions
|
|
@ -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"
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue