mirror of
https://github.com/multipleof4/git.planetrenox.com.git
synced 2026-01-13 16:07:55 +00:00
Update init.sh
This commit is contained in:
3
init.sh
3
init.sh
@@ -1,9 +1,10 @@
|
||||
#!/usr/bin/env sh
|
||||
set -eu
|
||||
mkdir -p /data/gitea/conf /data/gitea/custom
|
||||
chown -R 1000:1000 /data
|
||||
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
|
||||
exec gosu 1000:1000 /usr/local/bin/gitea web
|
||||
|
||||
Reference in New Issue
Block a user