Skip to content

Commit 1545355

Browse files
committed
chore: start the temporary client creation on a different admin port
1 parent 7cb696a commit 1545355

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

applications/accounts/scripts/create_api_user.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export TMP_CLIENT_SECRET="${KC_BOOTSTRAP_ADMIN_USERNAME}"
88
echo "create_api_user: waiting for Keycloak to start..."
99

1010
create_temporary_client() {
11-
/opt/keycloak/bin/kc.sh bootstrap-admin service --client-id=${TMP_CLIENT} --client-secret:env=TMP_CLIENT_SECRET
11+
/opt/keycloak/bin/kc.sh bootstrap-admin service --client-id=${TMP_CLIENT} --client-secret:env=TMP_CLIENT_SECRET --http-management-port 9876
1212
}
1313

1414
delete_temporary_client() {
@@ -24,7 +24,7 @@ create_kc_config() {
2424

2525
api_user_exists() {
2626
return $(/opt/keycloak/bin/kcadm.sh get users -q "username=$API_USERNAME" | grep -q "$API_USERNAME"; echo $?)
27-
}
27+
}
2828

2929
create_api_user() {
3030
/opt/keycloak/bin/kcadm.sh create users -s "username=${API_USERNAME}" -s enabled=True

0 commit comments

Comments
 (0)