aboutsummaryrefslogtreecommitdiffstats
path: root/volumes/mariadb/docker-entrypoint-initdb.d/01-create-camundabpmn.sh
diff options
context:
space:
mode:
authorMahendra Raghuwanshi <mahendra.raghuwanshi@amdocs.com>2019-04-05 04:56:57 +0000
committerMahendra Raghuwanshi <mahendra.raghuwanshi@amdocs.com>2019-04-05 05:01:06 +0000
commit3df6bf96d0fa4818e15c6d212f054303d1cb5142 (patch)
treee659f3cedf3d445763b37e34cb50b0303887239a /volumes/mariadb/docker-entrypoint-initdb.d/01-create-camundabpmn.sh
parentc00b3784cca0906cee656a5cda821488ffc0ddad (diff)
SO mariadb scripts failure if user exists
Issue-ID: OOM-1781 Signed-off-by: Mahendra Raghuwanshi <mahendra.raghuwanshi@amdocs.com> Change-Id: Ib4b48271375cb2771771258ffee14afddcaf314c
Diffstat (limited to 'volumes/mariadb/docker-entrypoint-initdb.d/01-create-camundabpmn.sh')
-rw-r--r--volumes/mariadb/docker-entrypoint-initdb.d/01-create-camundabpmn.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/volumes/mariadb/docker-entrypoint-initdb.d/01-create-camundabpmn.sh b/volumes/mariadb/docker-entrypoint-initdb.d/01-create-camundabpmn.sh
index fdec4c3..b6d30e4 100644
--- a/volumes/mariadb/docker-entrypoint-initdb.d/01-create-camundabpmn.sh
+++ b/volumes/mariadb/docker-entrypoint-initdb.d/01-create-camundabpmn.sh
@@ -26,7 +26,7 @@ echo "Creating camundabpmn database . . ." 1>/tmp/mariadb-camundabpmn.log 2>&1
mysql -uroot -p$MYSQL_ROOT_PASSWORD << 'EOF' || exit 1
DROP DATABASE IF EXISTS `camundabpmn`;
CREATE DATABASE `camundabpmn`;
-DELETE FROM mysql.user WHERE User='camundauser';
+DROP USER IF EXISTS 'camundauser';
CREATE USER 'camundauser';
GRANT ALL on camundabpmn.* to 'camundauser' identified by 'camunda123' with GRANT OPTION;
FLUSH PRIVILEGES;