From ad1114bff75aabdf7f5b81db1ac45fad89dc54d8 Mon Sep 17 00:00:00 2001 From: Ethan Koenig Date: Thu, 29 Jun 2017 18:16:43 -0400 Subject: [PATCH] Absolute path for setting.CustomConf --- modules/setting/setting.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/setting/setting.go b/modules/setting/setting.go index d07dce39a0bd5..f24a87653bf5f 100644 --- a/modules/setting/setting.go +++ b/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) {