Files
stpweb/gitea/entrypoint.sh
T
adamfandClaude Opus 4.6 7afd1be81b
Deploy with Docker Compose / deploy (push) Successful in 6s
Add Gitea entrypoint to generate app.ini from template on startup
Since app.ini is gitignored, the container needs to create it at
runtime. The entrypoint copies the template on first start, then
Gitea's env var overrides handle secrets.

Co-Authored-By: Claude Opus 4.6 <[email protected]>
2026-04-07 14:40:38 +01:00

11 lines
263 B
Bash
Executable File

#!/bin/sh
set -e
# Generate app.ini from template if it doesn't already exist
if [ ! -f /etc/gitea/app.ini ]; then
cp /etc/gitea/app.ini.template /etc/gitea/app.ini
echo "Generated app.ini from template"
fi
exec /usr/local/bin/docker-entrypoint.sh "$@"