diff options
author | guillep2k <18600385+guillep2k@users.noreply.github.com> | 2020-02-02 13:20:20 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-02 18:20:20 +0200 |
commit | 70aa629ae7b1a21a4de099dfadc7845e80aeeb25 (patch) | |
tree | b68f1ad4eafc5ac9aecc25abefc5085a7363456c /modules | |
parent | 391e0638cc075b3aa9d526f7a40f86bc2222e57b (diff) | |
download | gitea-70aa629ae7b1a21a4de099dfadc7845e80aeeb25.tar.gz gitea-70aa629ae7b1a21a4de099dfadc7845e80aeeb25.zip |
Add warning when using relative path to app.ini (#10104)
Co-authored-by: Lauris BH <lauris@nix.lv>
Diffstat (limited to 'modules')
-rw-r--r-- | modules/setting/setting.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/setting/setting.go b/modules/setting/setting.go index 4183c203ed..714015c475 100644 --- a/modules/setting/setting.go +++ b/modules/setting/setting.go @@ -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) } } |