mirror of
https://github.com/multipleof4/git.planetrenox.com.git
synced 2026-01-13 16:07:55 +00:00
9 lines
356 B
Bash
9 lines
356 B
Bash
#!/usr/bin/env sh
|
|
set -eu
|
|
mkdir -p /data/gitea/conf /data/gitea/custom
|
|
if [ ! -f /data/.bootstrapped ]; then
|
|
/usr/local/bin/gitea migrate
|
|
/usr/local/bin/gitea admin user create --admin --username "${GITEA_ADMIN_USER}" --password "${GITEA_ADMIN_PASSWD}" --email "${GITEA_ADMIN_EMAIL}" || true
|
|
touch /data/.bootstrapped
|
|
fi
|
|
exec /usr/local/bin/gitea web |