mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-24 03:21:49 +01:00
Absolute path for setting.CustomConf (#2085)
This commit is contained in:
parent
12cb6cd3c9
commit
3c0705ecf3
1 changed files with 2 additions and 0 deletions
|
@ -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…
Reference in a new issue