mirror of
https://github.com/beego/bee.git
synced 2024-11-24 18:30:53 +00:00
Merge pull request #718 from wangle201210/develop
make .beego dir if don`t exist
This commit is contained in:
commit
8b942b1f22
@ -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