Run Authentik bootstrap through management shell

This commit is contained in:
DCCONSTRUCTIONS
2026-07-06 00:54:37 +03:00
parent 22a944ad76
commit 72cf0b26b1
2 changed files with 9 additions and 1 deletions
+2 -1
View File
@@ -6,4 +6,5 @@ INFRA_DIR="$(cd "${SCRIPT_DIR}/.." && pwd)"
cd "${INFRA_DIR}"
docker compose --env-file .env -f docker-compose.yml exec -T authentik-worker python /bootstrap/bootstrap-cms.py
docker compose --env-file "${CMS_ENV_FILE:-.env}" -f docker-compose.yml exec -T authentik-worker sh -lc \
'if command -v ak >/dev/null 2>&1; then ak shell < /bootstrap/bootstrap-cms.py; else /lifecycle/ak shell < /bootstrap/bootstrap-cms.py; fi'