Fix path for sql scripts
[so/docker-config.git] / volumes / mariadb / docker-entrypoint-initdb.d / 01-create-camundabpmn.sh
index 16c2213..021e738 100644 (file)
@@ -26,12 +26,15 @@ echo "Creating camundabpmn database . . ."
 mysql -uroot -p$MYSQL_ROOT_PASSWORD << 'EOF' || exit 1
 DROP DATABASE IF EXISTS `camundabpmn`;
 CREATE DATABASE `camundabpmn`;
+DROP USER 'camundauser';
 DELETE FROM mysql.user WHERE User='camundauser';
 CREATE USER 'camundauser';
 GRANT ALL on camundabpmn.* to 'camundauser' identified by 'camunda123' with GRANT OPTION;
 FLUSH PRIVILEGES;
 EOF
 
+cd /docker-entrypoint-initdb.d/db-sql-scripts
+
 mysql -uroot -p$MYSQL_ROOT_PASSWORD -f < mariadb_engine_7.10.0.sql || exit 1
 mysql -uroot -p$MYSQL_ROOT_PASSWORD -f < mariadb_identity_7.10.0.sql || exit 1