From 73b68015de4d015f434c99ccaca49717bd164d3e Mon Sep 17 00:00:00 2001 From: zeripath Date: Tue, 1 Feb 2022 22:46:45 +0000 Subject: [PATCH] In docker rootless use $GITEA_APP_INI if provided (#18524) (#18535) Currently when calling `gitea` from any shell in rootless docker image it won't respect my `$GITEA_APP_INI`. Which this change it will use that value when defined instead of the default value. - https://discourse.gitea.io/t/gitea-1-16-0-unable-to-find-configuration-file/4543 - https://gitea.com/gitea/helm-chart/issues/287 Co-authored-by: Michael Kriese Co-authored-by: techknowlogick --- docker/rootless/usr/local/bin/gitea | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker/rootless/usr/local/bin/gitea b/docker/rootless/usr/local/bin/gitea index 5fdadfb3f..1b33ca854 100644 --- a/docker/rootless/usr/local/bin/gitea +++ b/docker/rootless/usr/local/bin/gitea @@ -32,7 +32,7 @@ for i in "$@"; do done if [ -z "$APP_INI_SET" ]; then - CONF_ARG="-c \"$APP_INI\"" + CONF_ARG="-c \"${GITEA_APP_INI:-$APP_INI}\"" fi