buildx/keycloak/tools/databases/change-database.sh

11 lines
387 B
Bash
Raw Permalink Normal View History

2020-07-29 14:01:00 +00:00
#!/bin/bash -e
DB_VENDOR=$1
cd /opt/jboss/keycloak
bin/jboss-cli.sh --file=/opt/jboss/tools/cli/databases/$DB_VENDOR/standalone-configuration.cli
rm -rf /opt/jboss/keycloak/standalone/configuration/standalone_xml_history
bin/jboss-cli.sh --file=/opt/jboss/tools/cli/databases/$DB_VENDOR/standalone-ha-configuration.cli
rm -rf standalone/configuration/standalone_xml_history/current/*