aboutsummaryrefslogtreecommitdiff
path: root/weed/util/config.go
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2020-12-07 16:46:48 -0800
committerChris Lu <chris.lu@gmail.com>2020-12-07 16:46:48 -0800
commit06bb7bf6c00982deb9eae953c85a730a1745c368 (patch)
tree27ded05eeb16dac7d0166a9343d46d990dd08cb1 /weed/util/config.go
parentfce880308773a1bbc88ab214a96c3f22d68981ca (diff)
downloadseaweedfs-06bb7bf6c00982deb9eae953c85a730a1745c368.tar.xz
seaweedfs-06bb7bf6c00982deb9eae953c85a730a1745c368.zip
adding /usr/local/etc/seaweedfs for bsd style config search path
related to https://reviews.freebsd.org/D27391
Diffstat (limited to 'weed/util/config.go')
-rw-r--r--weed/util/config.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/weed/util/config.go b/weed/util/config.go
index 6acf21c12..47f433028 100644
--- a/weed/util/config.go
+++ b/weed/util/config.go
@@ -22,6 +22,7 @@ func LoadConfiguration(configFileName string, required bool) (loaded bool) {
viper.SetConfigName(configFileName) // name of config file (without extension)
viper.AddConfigPath(".") // optionally look for config in the working directory
viper.AddConfigPath("$HOME/.seaweedfs") // call multiple times to add many search paths
+ viper.AddConfigPath("/usr/local/etc/seaweedfs/") // search path for bsd-style config directory in
viper.AddConfigPath("/etc/seaweedfs/") // path to look for the config file in
glog.V(1).Infof("Reading %s.toml from %s", configFileName, viper.ConfigFileUsed())