From 369b50d04b9e539b0f112be96584c5e1cf3a7a32 Mon Sep 17 00:00:00 2001 From: chrislu Date: Tue, 26 Aug 2025 11:22:37 -0700 Subject: [PATCH] Update setup_keycloak.sh --- test/s3/iam/setup_keycloak.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/test/s3/iam/setup_keycloak.sh b/test/s3/iam/setup_keycloak.sh index be603ce56..0f59e165b 100755 --- a/test/s3/iam/setup_keycloak.sh +++ b/test/s3/iam/setup_keycloak.sh @@ -345,6 +345,10 @@ main() { setup_iam_config() { echo -e "${BLUE}🔧 Setting up IAM configuration for detected environment${NC}" + # Change to script directory to ensure config files are found + local script_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" + cd "$script_dir" + # Choose the appropriate config based on detected port local config_source if [[ "${KEYCLOAK_PORT}" == "8080" ]]; then @@ -357,7 +361,7 @@ setup_iam_config() { # Verify source config exists if [[ ! -f "$config_source" ]]; then - echo -e "${RED}❌ Config file $config_source not found${NC}" + echo -e "${RED}❌ Config file $config_source not found in $script_dir${NC}" exit 1 fi