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