0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-12-23 07:43:18 -05:00

Absolute path for setting.CustomConf (#2085)

This commit is contained in:
Ethan Koenig 2017-06-30 23:10:04 -04:00 committed by Lunny Xiao
parent 12cb6cd3c9
commit 3c0705ecf3

View file

@ -595,6 +595,8 @@ func NewContext() {
if len(CustomConf) == 0 { if len(CustomConf) == 0 {
CustomConf = CustomPath + "/conf/app.ini" CustomConf = CustomPath + "/conf/app.ini"
} else if !filepath.IsAbs(CustomConf) {
CustomConf = filepath.Join(workDir, CustomConf)
} }
if com.IsFile(CustomConf) { if com.IsFile(CustomConf) {