mirror of
https://github.com/beego/bee.git
synced 2024-11-22 05:00:54 +00:00
make .beego dir if don`t exist
This commit is contained in:
parent
f0815cc9b2
commit
413f4ef129
@ -481,6 +481,12 @@ func NoticeUpdateBee() {
|
||||
return
|
||||
}
|
||||
beeHome := system.BeegoHome
|
||||
if !IsExist(beeHome) {
|
||||
if err := os.MkdirAll(beeHome, 0755); err != nil {
|
||||
beeLogger.Log.Fatalf("Could not create the directory: %s", err)
|
||||
return
|
||||
}
|
||||
}
|
||||
fp := beeHome + "/.noticeUpdateBee"
|
||||
timeNow := time.Now().Unix()
|
||||
var timeOld int64
|
||||
|
Loading…
Reference in New Issue
Block a user