fix: Use correct Authentik API endpoint for readiness check
Changed from /api/v3/core/tenants/ to /api/v3/flows/instances/ which returns proper JSON instead of 404 HTML during initialization.
This commit is contained in:
parent
64e76036b2
commit
325c9e6cf8
1 changed files with 1 additions and 1 deletions
|
|
@ -9,7 +9,7 @@
|
|||
shell: |
|
||||
i=1
|
||||
while [ $i -le 30 ]; do
|
||||
if docker exec authentik-server curl -sf -H "Authorization: Bearer {{ authentik_api_token }}" http://localhost:9000/api/v3/core/tenants/ > /dev/null 2>&1; then
|
||||
if docker exec authentik-server curl -sf -H "Authorization: Bearer {{ authentik_api_token }}" http://localhost:9000/api/v3/flows/instances/ > /dev/null 2>&1; then
|
||||
echo "Authentik API is ready"
|
||||
exit 0
|
||||
fi
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue