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,