From adef4ddc879dc01f2cffe86d0901f14adb36fd72 Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Tue, 29 Dec 2020 11:51:38 -0800 Subject: [PATCH] mount: load security keys fix https://github.com/chrislusf/seaweedfs/issues/1714 --- weed/command/mount_std.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/weed/command/mount_std.go b/weed/command/mount_std.go index 83cb352ff..7e75b082d 100644 --- a/weed/command/mount_std.go +++ b/weed/command/mount_std.go @@ -58,6 +58,7 @@ func RunMount(option *MountOptions, umask os.FileMode) bool { return true } + util.LoadConfiguration("security", false) // try to connect to filer, filerBucketsPath may be useful later grpcDialOption := security.LoadClientTLS(util.GetViper(), "grpc.client") var cipher bool @@ -78,8 +79,6 @@ func RunMount(option *MountOptions, umask os.FileMode) bool { dir := util.ResolvePath(*option.dir) chunkSizeLimitMB := *mountOptions.chunkSizeLimitMB - util.LoadConfiguration("security", false) - fmt.Printf("This is SeaweedFS version %s %s %s\n", util.Version(), runtime.GOOS, runtime.GOARCH) if dir == "" { fmt.Printf("Please specify the mount directory via \"-dir\"")