From 7bc9aa5ae115c9f669965147f55fd2ab862e331d Mon Sep 17 00:00:00 2001 From: holzi1005 Date: Sun, 8 Dec 2024 19:59:36 +0100 Subject: [PATCH] move tempaltes --- mysql-initdb/.init-userdb.sql => .tempaltes/init-userdb.sql | 0 keycloak/.realm-export.json => .tempaltes/realm-export.json | 0 keycloak/.gitkeep | 0 mysql-initdb/.gitkeep | 0 setup.sh | 4 ++-- 5 files changed, 2 insertions(+), 2 deletions(-) rename mysql-initdb/.init-userdb.sql => .tempaltes/init-userdb.sql (100%) rename keycloak/.realm-export.json => .tempaltes/realm-export.json (100%) create mode 100644 keycloak/.gitkeep create mode 100644 mysql-initdb/.gitkeep diff --git a/mysql-initdb/.init-userdb.sql b/.tempaltes/init-userdb.sql similarity index 100% rename from mysql-initdb/.init-userdb.sql rename to .tempaltes/init-userdb.sql diff --git a/keycloak/.realm-export.json b/.tempaltes/realm-export.json similarity index 100% rename from keycloak/.realm-export.json rename to .tempaltes/realm-export.json diff --git a/keycloak/.gitkeep b/keycloak/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/mysql-initdb/.gitkeep b/mysql-initdb/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/setup.sh b/setup.sh index 64623ba..a58d6d1 100644 --- a/setup.sh +++ b/setup.sh @@ -67,7 +67,7 @@ echo --- 1. Build the Keycloak ---------------------------------- echo ------------------------------------------------------------ echo "" -cp keycloak/.realm-export.json keycloak/realm-export.json +cp .templates/realm-export.json keycloak/realm-export.json sed -i "s||$NEW_UUID|g" keycloak/realm-export.json sed -i "s||$HTTP_METHOD://$PUBLIC_URL|g" keycloak/realm-export.json @@ -76,7 +76,7 @@ echo ------ 2. Build Mysql Init DB ------------------------------ echo ------------------------------------------------------------ echo "" -cp mysql-initdb/.init-userdb.sql mysql-initdb/init-userdb.sql +cp .templates/init-userdb.sql mysql-initdb/init-userdb.sql sed -i "s||$ODC_DB_PW|g" mysql-initdb/init-userdb.sql sed -i "s||$KEYCLOAK_PW|g" mysql-initdb/init-userdb.sql