#!/usr/bin/env bash

echo "MySQL: creating OpenXPKI database configuration"

cat <<__DB > /etc/openxpki/config.d/system/database.yaml
main:
    debug: 0
    type: MySQL
    host: $OXI_TEST_DB_MYSQL_DBHOST
    port: $OXI_TEST_DB_MYSQL_DBPORT
    name: $OXI_TEST_DB_MYSQL_NAME
    user: $OXI_TEST_DB_MYSQL_USER
    passwd: $OXI_TEST_DB_MYSQL_PASSWORD
__DB

#!/usr/bin/env bash

echo "MySQL: creating OpenXPKI database configuration"

cat <<__DB > /etc/openxpki/config.d/system/database.yaml
main:
    debug: 0
    type: MariaDB
    host: $OXI_TEST_DB_MYSQL_DBHOST
    port: $OXI_TEST_DB_MYSQL_DBPORT
    name: $OXI_TEST_DB_MYSQL_NAME
    user: $OXI_TEST_DB_MYSQL_USER
    passwd: $OXI_TEST_DB_MYSQL_PASSWORD
__DB

Use MariaDB driver in test environment
Use MariaDB driver in test environment
