keycloak output on import seems to have changed

This commit is contained in:
jasquat 2023-10-05 14:01:06 -04:00
parent cba4a19d3b
commit aeded99114

View File

@ -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