From d1088d551feb45a42af577d4b3ecceddfde45ac3 Mon Sep 17 00:00:00 2001 From: holzi1005 Date: Sun, 8 Dec 2024 07:42:29 +0100 Subject: [PATCH] update --- setup.sh | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/setup.sh b/setup.sh index c8f9047..885fdc6 100644 --- a/setup.sh +++ b/setup.sh @@ -35,22 +35,25 @@ fi HOST_IP=$(ip a | grep -Eo 'inet (addr:)?([0-9]*\.){3}[0-9]*' | grep -Eo '([0-9]*\.){3}[0-9]*' | grep -v '127.0.0.1' | head -n 1) echo ------------------------------------------------------------ -echo ----------------- Build the Keycloak ----------------------- +echo --- 1. Build the Keycloak ---------------------------------- echo ------------------------------------------------------------ +echo "" sed -i "s||$OAUTH_KEYCLOAK_CLIENT_ID|g" keycloak/realm-export.json sed -i "s||$HTTP_METHOD://$PUBLIC_URL|g" keycloak/realm-export.json echo ------------------------------------------------------------ -echo ----------------- Build Mysql Init DB ---------------------- +echo ------ 2. Build Mysql Init DB ------------------------------ echo ------------------------------------------------------------ +echo "" sed -i "s||$ODC_DB_PW|g" mysql-initdb/init-userdb.sql sed -i "s||$KEYCLOAK_PW|g" mysql-initdb/init-userdb.sql echo ------------------------------------------------------------ -echo ----------------- Build Docker Compose File ---------------- +echo --------- 3. Build Docker Compose File --------------------- echo ------------------------------------------------------------ +echo "" cp docker-compose.$HTTP_METHOD.yml docker-compose.yml @@ -62,6 +65,6 @@ sed -i "s||$HTTP_METHOD|g" docker-compose.yml sed -i "s||$ODC_DB_PW|g" docker-compose.yml sed -i "s||$HOST_IP|g" docker-compose.yml -echo ------------------------------------------------------------ -echo ----------------- Select and Start Docker Compose ---------- -echo ------------------------------------------------------------ +echo "" +echo "" +echo FINALY: Select and Start Docker Compose ----------