Browse Source

Absolute path for setting.CustomConf (#2085)

tags/v1.21.12.1
Ethan Koenig Lunny Xiao 8 years ago
parent
commit
3c0705ecf3
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      modules/setting/setting.go

+ 2
- 0
modules/setting/setting.go View File

@@ -595,6 +595,8 @@ func NewContext() {

if len(CustomConf) == 0 {
CustomConf = CustomPath + "/conf/app.ini"
} else if !filepath.IsAbs(CustomConf) {
CustomConf = filepath.Join(workDir, CustomConf)
}

if com.IsFile(CustomConf) {


Loading…
Cancel
Save