We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 7211f80 + ad15f95 commit 1a95e0bCopy full SHA for 1a95e0b
cmd/daemon/main.go
@@ -465,7 +465,11 @@ func loadConfig(cfg *Config) error {
465
}
466
467
func (cfg *Config) ConfigPath() string {
468
- return filepath.Join(cfg.ConfigDir, "config.yml")
+ if _, err := os.Stat(filepath.Join(cfg.ConfigDir, "config.yaml")); os.IsNotExist(err) {
469
+ return filepath.Join(cfg.ConfigDir, "config.yml")
470
+ } else {
471
+ return filepath.Join(cfg.ConfigDir, "config.yaml")
472
+ }
473
474
475
func (cfg *Config) StatePath() string {
0 commit comments