From 041eb3e4b96a00849f87f96401e522a809058595 Mon Sep 17 00:00:00 2001 From: Moritz Date: Tue, 25 Aug 2026 22:15:08 +0200 Subject: [PATCH] fix(check_blueprints): reapply failed blueprints --- abra.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/abra.sh b/abra.sh index e1f8dd5..40b448c 100644 --- a/abra.sh +++ b/abra.sh @@ -396,7 +396,7 @@ Brand.objects.filter(default=True).delete() check_blueprints() { failed_blueprints=$(/manage.py shell -c """ -print(','.join(b.path for b in BlueprintInstance.objects.exclude(status='successful'))) +print(','.join(b.path for b in BlueprintInstance.objects.exclude(status='successful').exclude(name='Default - Out-of-box-experience flow'))) """ 2>&1 | quieten | tail -n1) if [ -z "$failed_blueprints" ]; then @@ -407,6 +407,13 @@ print(','.join(b.path for b in BlueprintInstance.objects.exclude(status='success echo "These Blueprints failed:" echo "$failed_blueprints" | tr ',' '\n' + echo "execute failed Blueprints" + export AUTHENTIK_LOG_LEVEL=warning + for bp in $(echo "$failed_blueprints" | tr ',' '\n'); do + echo "Applying: $bp" + ak apply_blueprint "/blueprints/$bp" 2>&1 | quieten + done + return 1 }