From c58f7094d22200878ae1bc07f8bcaa6259e15305 Mon Sep 17 00:00:00 2001 From: Willy Kloucek Date: Thu, 15 Jul 2021 11:17:58 +0200 Subject: [PATCH] remove idp from the keycloak example --- .../config/ocis/entrypoint-override.sh | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/deployments/examples/ocis_keycloak/config/ocis/entrypoint-override.sh b/deployments/examples/ocis_keycloak/config/ocis/entrypoint-override.sh index 6aa00a723..9db03de00 100644 --- a/deployments/examples/ocis_keycloak/config/ocis/entrypoint-override.sh +++ b/deployments/examples/ocis_keycloak/config/ocis/entrypoint-override.sh @@ -5,14 +5,12 @@ set -e ocis server& sleep 10 +# stop builtin idp since we use Keycloak as a replacement +ocis kill idp + echo "##################################################" echo "change default secrets:" -# IDP -IDP_USER_UUID=$(ocis accounts list | grep "| Kopano IDP " | egrep '[0-9a-f]{8}-([0-9a-f]{4}-){3}[0-9a-f]{12}' -o) -echo " IDP user UUID: $IDP_USER_UUID" -ocis accounts update --password $IDP_LDAP_BIND_PASSWORD $IDP_USER_UUID - # REVA REVA_USER_UUID=$(ocis accounts list | grep " | Reva Inter " | egrep '[0-9a-f]{8}-([0-9a-f]{4}-){3}[0-9a-f]{12}' -o) echo " Reva user UUID: $REVA_USER_UUID" @@ -25,6 +23,11 @@ echo "##################################################" echo "delete demo users" # demo users are provided by keycloak set +e # accounts can only delete once, so it will fail the second time +# IDP +IDP_USER_UUID=$(ocis accounts list | grep "| Kopano IDP " | egrep '[0-9a-f]{8}-([0-9a-f]{4}-){3}[0-9a-f]{12}' -o) +echo " IDP user UUID: $IDP_USER_UUID" +ocis accounts remove $IDP_USER_UUID + ocis accounts remove 4c510ada-c86b-4815-8820-42cdf82c3d51 ocis accounts remove ddc2004c-0977-11eb-9d3f-a793888cd0f8 ocis accounts remove 932b4540-8d16-481e-8ef4-588e4b6b151c