From 61f347e3499ef55c57b87e09e92fa44ec127b451 Mon Sep 17 00:00:00 2001 From: Kyle D Date: Tue, 23 Feb 2021 14:21:44 -0500 Subject: Add environment-to-ini to docker image (#14762) * Add environment-to-app.ini routine * Call environment-to-ini in docker setup scripts * Automatically convert section vars to lower case to match documentation * Remove git patch instructions * Add env variable documentation to Install Docker --- docker/rootless/usr/local/bin/docker-setup.sh | 3 +++ 1 file changed, 3 insertions(+) (limited to 'docker/rootless') diff --git a/docker/rootless/usr/local/bin/docker-setup.sh b/docker/rootless/usr/local/bin/docker-setup.sh index 9764ff3c59..ef86d01c9f 100755 --- a/docker/rootless/usr/local/bin/docker-setup.sh +++ b/docker/rootless/usr/local/bin/docker-setup.sh @@ -46,3 +46,6 @@ if [ ! -f ${GITEA_APP_INI} ]; then SECRET_KEY=${SECRET_KEY:-""} \ envsubst < /etc/templates/app.ini > ${GITEA_APP_INI} fi + +# Replace app.ini settings with env variables in the form GITEA__SECTION_NAME__KEY_NAME +environment-to-ini --config ${GITEA_APP_INI} -- cgit v1.2.3