Skip to content

Commit

Permalink
In docker rootless use $GITEA_APP_INI if provided (go-gitea#18524)
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
  • Loading branch information
viceice authored and zeripath committed Feb 1, 2022
1 parent 483bda4 commit 54a7647
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 54a7647

Please sign in to comment.