mirror of
https://github.com/ipfs/kubo.git
synced 2026-03-06 16:58:11 +08:00
When initializing datastore, create directory with correct permissions.
This commit is contained in:
parent
2a3ab23f1d
commit
832d84ef3c
@ -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
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user