When initializing datastore, create directory with correct permissions.

This commit is contained in:
Shanti Bouchez-Mongardé 2014-09-26 21:42:25 +02:00
parent 2a3ab23f1d
commit 832d84ef3c

View File

@ -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
}