#!/bin/bash # Copy MySQL driver cd /tmp mkdir -p mysql/main && mv /mysql-connector-java-5.1.32.jar mysql/main/ cp /keycloak-docker-cluster/shared-files/mysql-module.xml mysql/main/module.xml mv mysql $JBOSS_MODULES_HOME/com/ if [ $JBOSS_TYPE == "eap63" ]; then EXT="as7"; else EXT=$JBOSS_TYPE; fi; sed -i -e "s//&\n /" $JBOSS_HOME/standalone/configuration/standalone-ha.xml sed -i -e 's//&\n /' $JBOSS_HOME/standalone/configuration/standalone-ha.xml && \ sed -i -e 's//&\n \n \n \n <\/authentication>\n <\/security-domain>/' $JBOSS_HOME/standalone/configuration/standalone-ha.xml && \ sed -i -e 's//&\n \n com.mysql.jdbc.Driver<\/xa-datasource-class>\n com.mysql.jdbc.Driver<\/driver-class>\n <\/driver>/' $JBOSS_HOME/standalone/configuration/standalone-ha.xml && \ sed -i -e 's/<\/periodic-rotating-file-handler>/&\n \n \n <\/logger>\n \n \n <\/logger>/' $JBOSS_HOME/standalone/configuration/standalone-ha.xml sed -i -e 's//&\n \ \n \n \ \n \ \n \n \ \n \n <\/cache-container>/' $JBOSS_HOME/standalone/configuration/standalone-ha.xml sed -i "s|||" $JBOSS_HOME/standalone/configuration/standalone-ha.xml sed -i "s|#JAVA_OPTS=\"\$JAVA_OPTS -agentlib:jdwp=transport=dt_socket|JAVA_OPTS=\"\$JAVA_OPTS -agentlib:jdwp=transport=dt_socket|" $JBOSS_HOME/bin/standalone.conf cp /keycloak-docker-cluster/shared-files/mysql-keycloak-ds.xml $JBOSS_HOME/standalone/deployments/