mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-01-19 00:09:16 +08:00
fix: 解决部分情况下缓存目录导致启动失败的问题 (#6382)
This commit is contained in:
parent
94e0c80d47
commit
75612879c7
2
backend/init/cache/cache.go
vendored
2
backend/init/cache/cache.go
vendored
@ -12,7 +12,7 @@ import (
|
|||||||
func Init() {
|
func Init() {
|
||||||
c := global.CONF.System.Cache
|
c := global.CONF.System.Cache
|
||||||
_ = os.RemoveAll(c)
|
_ = os.RemoveAll(c)
|
||||||
_ = os.Mkdir(c, 0644)
|
_ = os.Mkdir(c, 0755)
|
||||||
options := badger.Options{
|
options := badger.Options{
|
||||||
Dir: c,
|
Dir: c,
|
||||||
ValueDir: c,
|
ValueDir: c,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user