From 54a76476784d36812101a97d36fb6aa74c983be6 Mon Sep 17 00:00:00 2001 From: Michael Kriese Date: Tue, 1 Feb 2022 21:18:57 +0100 Subject: [PATCH] In docker rootless use $GITEA_APP_INI if provided (#18524) 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 --- 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 5fdadfb3fe84..1b33ca854797 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