From 546780647c4249926170fcf1c4e11f4be4d61056 Mon Sep 17 00:00:00 2001 From: Khaled <45347802+JavaDeveloper456788@users.noreply.github.com> Date: Fri, 6 Dec 2024 01:09:18 -0800 Subject: [PATCH] Update update-kc.sh --- Keycloak/update-kc.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Keycloak/update-kc.sh b/Keycloak/update-kc.sh index 132e707..2115e17 100644 --- a/Keycloak/update-kc.sh +++ b/Keycloak/update-kc.sh @@ -5,6 +5,7 @@ KC_BASE_URL=$1 KC_PASSWORD=$2 KC_USERNAME=$3 KC_REALM_ID=$4 +SCRIPTS_PATH=$5 echo Fetching SOAM token @@ -18,6 +19,7 @@ TKN=$(curl -s \ #Create Roles echo -e "CREATE Roles \n" +echo "$SCRIPTS_PATH" while read line do #curl -sX POST "https://$KC_BASE_URL/$KC_REALM_ID/roles" \ @@ -25,4 +27,4 @@ do #--header "Content-Type: application/json" \ #--data-raw "$line" echo -e "\n" -done < grad-roles.dat +done < $SCRIPTS_PATH/grad-roles.dat