diff options
Diffstat (limited to 'weed/filer/filer_conf.go')
| -rw-r--r-- | weed/filer/filer_conf.go | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/weed/filer/filer_conf.go b/weed/filer/filer_conf.go index 6a746f7ba..18ed37abd 100644 --- a/weed/filer/filer_conf.go +++ b/weed/filer/filer_conf.go @@ -13,10 +13,11 @@ import ( ) const ( - DirectoryEtc = "/etc" - FilerConfName = "filer.conf" - IamConfigDirecotry = "/etc/iam" - IamIdentityFile = "identity.json" + DirectoryEtcRoot = "/etc" + DirectoryEtcSeaweedFS = "/etc/seaweedfs" + FilerConfName = "filer.conf" + IamConfigDirecotry = "/etc/iam" + IamIdentityFile = "identity.json" ) type FilerConf struct { @@ -31,7 +32,7 @@ func NewFilerConf() (fc *FilerConf) { } func (fc *FilerConf) loadFromFiler(filer *Filer) (err error) { - filerConfPath := util.NewFullPath(DirectoryEtc, FilerConfName) + filerConfPath := util.NewFullPath(DirectoryEtcSeaweedFS, FilerConfName) entry, err := filer.FindEntry(context.Background(), filerConfPath) if err != nil { if err == filer_pb.ErrNotFound { |
