Skip to content

Commit 54a7647

Browse files
viceicezeripath
authored andcommitted
In docker rootless use $GITEA_APP_INI if provided (go-gitea#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
1 parent 483bda4 commit 54a7647

File tree

1 file changed

+1
-1
lines changed
  • docker/rootless/usr/local/bin

1 file changed

+1
-1
lines changed

docker/rootless/usr/local/bin/gitea

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ for i in "$@"; do
3232
done
3333

3434
if [ -z "$APP_INI_SET" ]; then
35-
CONF_ARG="-c \"$APP_INI\""
35+
CONF_ARG="-c \"${GITEA_APP_INI:-$APP_INI}\""
3636
fi
3737

3838

0 commit comments

Comments
 (0)