This commit is contained in:
AlteredCoder 2020-05-22 18:23:37 +02:00
parent f8821b8982
commit 68ccbd1f69

View file

@ -36,12 +36,11 @@ func initConfig() {
log.SetLevel(log.ErrorLevel)
}
config.configFolder = filepath.Join(filepath.Clean(csConfig.csCliFolder))
csConfig := csconfig.NewCrowdSecConfig()
if err := csConfig.GetOPT(); err != nil {
log.Fatalf(err.Error())
}
config.configFolder = filepath.Join(filepath.Clean(csConfig.csCliFolder))
if strings.HasPrefix(config.configFolder, "~/") {
usr, err := user.Current()