Absolute path for setting.CustomConf (#2085)

tokarchuk/v1.17
Ethan Koenig 7 years ago committed by Lunny Xiao
parent 12cb6cd3c9
commit 3c0705ecf3
  1. 2
      modules/setting/setting.go

@ -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