Fix permission for types indexes

This commit is contained in:
Nicolas Dextraze 2017-02-11 23:30:06 -08:00
parent b302a1f78d
commit 6713362868

View File

@ -255,12 +255,12 @@ func (me DailyDiskStorage) RebuildTypeIndexes() {
if err != nil {
panic(err)
}
err = os.MkdirAll(me.typesIndexesPath, 0644)
err = os.MkdirAll(me.typesIndexesPath, 0777)
if err != nil {
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 {
panic(err)
}