Skip to content

Commit

Permalink
In docker rootless use $GITEA_APP_INI if provided (#18524) (#18535)
Browse files Browse the repository at this point in the history
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 <michael.kriese@visualon.de>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
  • Loading branch information
3 people authored Feb 1, 2022
1 parent e4919e4 commit 73b6801
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docker/rootless/usr/local/bin/gitea
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down

0 comments on commit 73b6801

Please sign in to comment.