mirror of
https://github.com/drakkan/sftpgo.git
synced 2025-12-07 23:00:55 +03:00
macOS: add config file search path
this way the default config file is used in brew package if no config file is set Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
This commit is contained in:
@@ -23,4 +23,5 @@ import "github.com/spf13/viper"
|
||||
func setViperAdditionalConfigPaths() {
|
||||
viper.AddConfigPath("$HOME/.config/sftpgo")
|
||||
viper.AddConfigPath("/etc/sftpgo")
|
||||
viper.AddConfigPath("/usr/local/etc/sftpgo")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user