When initializing datastore, create directory with correct permissions.

parent 2a3ab23f
......@@ -73,7 +73,7 @@ func initCmd(c *commander.Command, inp []string) error {
cfg.Datastore.Type = "leveldb"
// Construct the data store if missing
if err := os.MkdirAll(dspath, os.ModeDir); err != nil {
if err := os.MkdirAll(dspath, os.ModePerm); err != nil {
return err
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment