lifecycle: run bootstrap tasks inline when using automated install

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer
2022-06-09 20:09:51 +02:00
parent 66f4a31b4c
commit 7beebe030d
3 changed files with 27 additions and 5 deletions

View File

@ -38,6 +38,9 @@ if [[ "$1" == "server" ]]; then
wait_for_db
echo "server" > $MODE_FILE
python -m lifecycle.migrate
if [[ ! -z "${AUTHENTIK_BOOTSTRAP_PASSWORD}" || ! -z "${AUTHENTIK_BOOTSTRAP_TOKEN}" ]]; then
python -m manage bootstrap_tasks
fi
/authentik-proxy
elif [[ "$1" == "worker" ]]; then
wait_for_db