From aeded991144a07e380fea92eecbd14dfca57d060 Mon Sep 17 00:00:00 2001 From: jasquat Date: Thu, 5 Oct 2023 14:01:06 -0400 Subject: [PATCH] keycloak output on import seems to have changed --- spiffworkflow-backend/keycloak/bin/start_keycloak | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/spiffworkflow-backend/keycloak/bin/start_keycloak b/spiffworkflow-backend/keycloak/bin/start_keycloak index f5e7dda63..cd6fb2326 100755 --- a/spiffworkflow-backend/keycloak/bin/start_keycloak +++ b/spiffworkflow-backend/keycloak/bin/start_keycloak @@ -71,8 +71,9 @@ set +e import_output=$(docker exec keycloak /opt/keycloak/bin/kc.sh import --file /tmp/${realm_name}-realm.json 2>&1) setup_traps set -e -if ! grep -qE "Import finished successfully" <<<"$import_output"; then - echo -e "FAILED: $import_output" +# if ! grep -qE "Import finished successfully" <<<"$import_output"; then +if ! grep -qE "Realm '${realm_name}' imported" <<<"$import_output"; then + echo -e "IMPORT FAILED: $import_output" exit 1 fi