Fix permission for types indexes
This commit is contained in:
parent
b302a1f78d
commit
6713362868
|
@ -255,12 +255,12 @@ func (me DailyDiskStorage) RebuildTypeIndexes() {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
panic(err)
|
panic(err)
|
||||||
}
|
}
|
||||||
err = os.MkdirAll(me.typesIndexesPath, 0644)
|
err = os.MkdirAll(me.typesIndexesPath, 0777)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
panic(err)
|
panic(err)
|
||||||
}
|
}
|
||||||
|
|
||||||
globalIndexFile, err := os.OpenFile(me.globalIndexFilename, os.O_RDONLY, 0)
|
globalIndexFile, err := os.OpenFile(me.globalIndexFilename, os.O_RDONLY, 0644)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
panic(err)
|
panic(err)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user