Skip to content

Commit

Permalink
Add warning when using relative path to app.ini (go-gitea#10104)
Browse files Browse the repository at this point in the history
Co-authored-by: Lauris BH <lauris@nix.lv>
  • Loading branch information
guillep2k and lafriks committed Feb 2, 2020
1 parent 391e063 commit 70aa629
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions modules/setting/setting.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}

Expand Down

0 comments on commit 70aa629

Please sign in to comment.