This commit is contained in:
AlteredCoder 2020-05-22 18:24:54 +02:00
parent 68ccbd1f69
commit 74dd723ebf
2 changed files with 2 additions and 2 deletions

View file

@ -40,7 +40,7 @@ func initConfig() {
if err := csConfig.GetOPT(); err != nil {
log.Fatalf(err.Error())
}
config.configFolder = filepath.Join(filepath.Clean(csConfig.csCliFolder))
config.configFolder = filepath.Join(filepath.Clean(csConfig.CsCliFolder))
if strings.HasPrefix(config.configFolder, "~/") {
usr, err := user.Current()

View file

@ -31,7 +31,7 @@ type CrowdSec struct {
Profiling bool `yaml:"profiling,omitempty"` //true -> enable runtime profiling
SQLiteFile string `yaml:"sqlite_path,omitempty"` //path to sqlite output
APIMode bool `yaml:"apimode,omitempty"` //true -> enable api push
csCliFolder string `yaml:"cscli_dir"` //cscli folder
CsCliFolder string `yaml:"cscli_dir"` //cscli folder
Linter bool
Prometheus bool
HTTPListen string `yaml:"http_listen,omitempty"`