forked from TrueCloudLab/frostfs-node
[#626] The default config file location
Signed-off-by: Tivizi Jing <tivizi@163.com>
This commit is contained in:
parent
2da5a309f7
commit
1f461baf0b
1 changed files with 1 additions and 2 deletions
|
@ -142,9 +142,8 @@ func initConfig() {
|
|||
os.Exit(1)
|
||||
}
|
||||
|
||||
// Search config in `$HOME/.config/neofs-cli/` or `$PWD` with name "config.yaml"
|
||||
// Search config in `$HOME/.config/neofs-cli/` with name "config.yaml"
|
||||
viper.AddConfigPath(filepath.Join(home, ".config", "neofs-cli"))
|
||||
viper.AddConfigPath(".")
|
||||
viper.SetConfigName("config")
|
||||
viper.SetConfigType("yaml")
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue