mirror of
https://github.com/multipleof4/git.planetrenox.com.git
synced 2026-01-14 00:17:57 +00:00
Update init.sh
This commit is contained in:
3
init.sh
3
init.sh
@@ -1,9 +1,10 @@
|
|||||||
#!/usr/bin/env sh
|
#!/usr/bin/env sh
|
||||||
set -eu
|
set -eu
|
||||||
mkdir -p /data/gitea/conf /data/gitea/custom
|
mkdir -p /data/gitea/conf /data/gitea/custom
|
||||||
|
chown -R 1000:1000 /data
|
||||||
if [ ! -f /data/.bootstrapped ]; then
|
if [ ! -f /data/.bootstrapped ]; then
|
||||||
/usr/local/bin/gitea migrate
|
/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
|
/usr/local/bin/gitea admin user create --admin --username "${GITEA_ADMIN_USER}" --password "${GITEA_ADMIN_PASSWD}" --email "${GITEA_ADMIN_EMAIL}" || true
|
||||||
touch /data/.bootstrapped
|
touch /data/.bootstrapped
|
||||||
fi
|
fi
|
||||||
exec /usr/local/bin/gitea
|
exec gosu 1000:1000 /usr/local/bin/gitea web
|
||||||
|
|||||||
Reference in New Issue
Block a user