db: Change db file mode to 660

Fixes #58
This commit is contained in:
Daan Sprenkels 2020-05-30 17:07:35 +02:00
parent 847fd8072b
commit 77e89251e7
1 changed files with 1 additions and 1 deletions

View File

@ -51,7 +51,7 @@ func OpenDB(path string, fs *FileStore) (*Database, error) {
return nil, errors.New("database not set")
}
db, err := bolt.Open(path, 0666, &bolt.Options{Timeout: 1 * time.Second})
db, err := bolt.Open(path, 0660, &bolt.Options{Timeout: 1 * time.Second})
if err != nil {
return nil, errors.Wrapf(err, "failed to open database at '%v'", path)
}