From 387cbeccd6fdfb040010c33f818892c84a3ac8a9 Mon Sep 17 00:00:00 2001 From: David Festal Date: Tue, 10 Sep 2019 13:51:29 +0200 Subject: [PATCH] Don't hard-code the `che` realm ! Signed-off-by: David Festal --- deploy/keycloak_provision | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deploy/keycloak_provision b/deploy/keycloak_provision index c60fcb41c..e1ec81278 100644 --- a/deploy/keycloak_provision +++ b/deploy/keycloak_provision @@ -32,5 +32,5 @@ if [ $? -eq 0 ]; then echo "Realm exists"; exit 0; fi \ --uusername admin \ --cclientid broker \ --rolename read-token \ -&& CLIENT_ID=$($script get clients -r che -q clientId=broker | sed -n 's/.*"id" *: *"\([^"]\+\).*/\1/p') \ -&& $script update clients/$CLIENT_ID -r che -s "defaultRoles+=read-token" \ No newline at end of file +&& CLIENT_ID=$($script get clients -r '$keycloakRealm' -q clientId=broker | sed -n 's/.*"id" *: *"\([^"]\+\).*/\1/p') \ +&& $script update clients/$CLIENT_ID -r '$keycloakRealm' -s "defaultRoles+=read-token" \ No newline at end of file