fix: 解决部分情况下缓存目录导致启动失败的问题 (#6382)

This commit is contained in:
2024-09-05 17:23:47 +08:00 committed by GitHub
parent 94e0c80d47
commit 75612879c7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -12,7 +12,7 @@ import (
func Init() {
c := global.CONF.System.Cache
_ = os.RemoveAll(c)
_ = os.Mkdir(c, 0644)
_ = os.Mkdir(c, 0755)
options := badger.Options{
Dir: c,
ValueDir: c,