From 84b7b83517d5a659514a91c1b87a44c73d469c18 Mon Sep 17 00:00:00 2001 From: Konstantin Lebedev <9497591+kmlebedev@users.noreply.github.com> Date: Mon, 28 Mar 2022 18:41:52 +0500 Subject: [PATCH] fix permission mkdir snapshot avoid open file operation not permitted --- weed/server/raft_server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weed/server/raft_server.go b/weed/server/raft_server.go index 648e20505..d559cb691 100644 --- a/weed/server/raft_server.go +++ b/weed/server/raft_server.go @@ -86,7 +86,7 @@ func NewRaftServer(option *RaftServerOption) (*RaftServer, error) { os.RemoveAll(path.Join(s.dataDir, "conf")) os.RemoveAll(path.Join(s.dataDir, "snapshot")) } - if err := os.MkdirAll(path.Join(s.dataDir, "snapshot"), 0600); err != nil { + if err := os.MkdirAll(path.Join(s.dataDir, "snapshot"), 0700); err != nil { return nil, err }