digitaldemocratic/config/dd.sh

16 lines
712 B
Bash
Raw Normal View History

2021-04-08 13:52:16 +02:00
#!/bin/bash
source ../digitaldemocratic.conf
echo "Dump realm.json"
docker exec -i isard-sso-keycloak sh -c '/opt/jboss/keycloak/bin/kcadm.sh \
config credentials --server http://localhost:8080/auth \
--realm master --user $KEYCLOAK_USER --password $KEYCLOAK_PASSWORD &> /dev/null && \
/opt/jboss/keycloak/bin/kcadm.sh \
2021-05-19 19:19:16 +02:00
get realms/master' > keycloak/realm.json
2021-04-08 13:52:16 +02:00
echo "Dump realm.json"
docker exec -i isard-sso-keycloak sh -c '/opt/jboss/keycloak/bin/kcadm.sh \
config credentials --server http://localhost:8080/auth \
--realm master --user $KEYCLOAK_USER --password $KEYCLOAK_PASSWORD &> /dev/null && \
/opt/jboss/keycloak/bin/kcadm.sh \
2021-05-19 19:19:16 +02:00
get realms/master' > keycloak/realm.json