Stabilize Authentik bootstrap sequence
This commit is contained in:
parent
72cf0b26b1
commit
ea17e4bb91
|
|
@ -67,5 +67,5 @@ Bootstrap Authentik on Synology:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
cd /volume1/docker/dc-cms/source/infra
|
cd /volume1/docker/dc-cms/source/infra
|
||||||
sudo /usr/local/bin/docker compose --env-file .env.synology -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'
|
sudo /usr/local/bin/docker compose --env-file .env.synology -f docker-compose.yml exec -T authentik-worker sh -lc 'set -e; export PATH="${VENV_PATH}/bin:${PATH}"; for bp in default/flow-default-authentication-flow.yaml default/flow-default-invalidation-flow.yaml default/flow-default-provider-authorization-implicit-consent.yaml; do /lifecycle/ak apply_blueprint "$bp"; done; /lifecycle/ak shell < /bootstrap/bootstrap-cms.py'
|
||||||
```
|
```
|
||||||
|
|
|
||||||
|
|
@ -6,5 +6,15 @@ INFRA_DIR="$(cd "${SCRIPT_DIR}/.." && pwd)"
|
||||||
|
|
||||||
cd "${INFRA_DIR}"
|
cd "${INFRA_DIR}"
|
||||||
|
|
||||||
docker compose --env-file "${CMS_ENV_FILE:-.env}" -f docker-compose.yml exec -T authentik-worker sh -lc \
|
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'
|
set -e
|
||||||
|
export PATH="${VENV_PATH}/bin:${PATH}"
|
||||||
|
for bp in \
|
||||||
|
default/flow-default-authentication-flow.yaml \
|
||||||
|
default/flow-default-invalidation-flow.yaml \
|
||||||
|
default/flow-default-provider-authorization-implicit-consent.yaml
|
||||||
|
do
|
||||||
|
/lifecycle/ak apply_blueprint "$bp"
|
||||||
|
done
|
||||||
|
/lifecycle/ak shell < /bootstrap/bootstrap-cms.py
|
||||||
|
'
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue