aboutsummaryrefslogtreecommitdiffstats
path: root/modules/setting
diff options
context:
space:
mode:
authorguillep2k <18600385+guillep2k@users.noreply.github.com>2020-02-02 13:20:20 -0300
committerGitHub <noreply@github.com>2020-02-02 18:20:20 +0200
commit70aa629ae7b1a21a4de099dfadc7845e80aeeb25 (patch)
treeb68f1ad4eafc5ac9aecc25abefc5085a7363456c /modules/setting
parent391e0638cc075b3aa9d526f7a40f86bc2222e57b (diff)
downloadgitea-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/setting')
-rw-r--r--modules/setting/setting.go1
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)
}
}