Skip to content

Commit

Permalink
Fixed permissions when adalanche creates the data folder
Browse files Browse the repository at this point in the history
  • Loading branch information
lkarlslund committed Nov 26, 2021
1 parent 1023340 commit 0a06d8d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions modules/cli/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,11 +90,11 @@ func Run() error {
// We do lots of allocations when importing stuff, so lets set this aggressively
debug.SetGCPercent(10)

// Ensure the cache folder is available
// Ensure the data folder is available
if _, err := os.Stat(*datapath); os.IsNotExist(err) {
err = os.MkdirAll(*datapath, 0600)
err = os.MkdirAll(*datapath, 0711)
if err != nil {
return fmt.Errorf("Could not create cache folder %v: %v", datapath, err)
return fmt.Errorf("Could not create data folder %v: %v", datapath, err)
}
}

Expand Down

0 comments on commit 0a06d8d

Please sign in to comment.