0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2024-11-26 16:02:54 +01:00

Add warning when using relative path to app.ini (#10104)

Co-authored-by: Lauris BH <lauris@nix.lv>
This commit is contained in:
guillep2k 2020-02-02 13:20:20 -03:00 committed by GitHub
parent 391e0638cc
commit 70aa629ae7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -511,6 +511,7 @@ func SetCustomPathAndConf(providedCustom, providedConf, providedWorkPath string)
CustomConf = path.Join(CustomPath, "conf/app.ini")
} else if !filepath.IsAbs(CustomConf) {
CustomConf = path.Join(CustomPath, CustomConf)
log.Warn("Using 'custom' directory as relative origin for configuration file: '%s'", CustomConf)
}
}