Skip to content

Commit

Permalink
Allow /etc/infping as config path
Browse files Browse the repository at this point in the history
  • Loading branch information
amgxv committed Oct 10, 2019
1 parent a25adcb commit 2e3d20f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion infping.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ func setDefaults() {
func readConfiguration() {
viper.SetConfigName("infping")
viper.AddConfigPath("/etc/")
viper.AddConfigPath("/etc/infping/")
viper.AddConfigPath("/usr/local/etc/")
viper.AddConfigPath("/config/")
viper.AddConfigPath(".")
Expand Down Expand Up @@ -236,4 +237,4 @@ func mustHostname() string {
panic("unable to find hostname " + err.Error())
}
return strings.ToLower(name)
}
}

0 comments on commit 2e3d20f

Please sign in to comment.