From 9d66ec24d4b1b8de0949bebeeaee91f0f19a54c1 Mon Sep 17 00:00:00 2001 From: fyInALT Date: Tue, 15 Oct 2024 17:46:27 +0800 Subject: [PATCH] fix stakerd.conf: permission denied --- cmd/stakercli/admin/admin.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/stakercli/admin/admin.go b/cmd/stakercli/admin/admin.go index 641fa8a..36693b7 100644 --- a/cmd/stakercli/admin/admin.go +++ b/cmd/stakercli/admin/admin.go @@ -62,7 +62,7 @@ func dumpCfg(c *cli.Context) error { dir, _ := path.Split(configPath) if _, err := os.Stat(dir); os.IsNotExist(err) { - if err := os.MkdirAll(dir, os.ModeDir); err != nil { + if err := os.MkdirAll(dir, 0700); err != nil { return cli.NewExitError( fmt.Sprintf("could not create config directory: %s", err.Error()), 1,