From a8b3f1e2a6dd6213d6bfab4934750bbe58395fa7 Mon Sep 17 00:00:00 2001 From: Bruno Galindro da Costa Date: Mon, 3 Jul 2017 18:02:02 -0300 Subject: [PATCH] Fix MySQL user creation --- server-mysql/alpine/run_zabbix_component.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server-mysql/alpine/run_zabbix_component.sh b/server-mysql/alpine/run_zabbix_component.sh index cac24375e..73c4a03fb 100755 --- a/server-mysql/alpine/run_zabbix_component.sh +++ b/server-mysql/alpine/run_zabbix_component.sh @@ -136,7 +136,7 @@ check_variables_mysql() { DB_SERVER_ROOT_PASS=${MYSQL_ROOT_PASSWORD:-""} fi - [ -n "${MYSQL_USER}" ] || CREATE_ZBX_DB_USER=true + [ -n "${MYSQL_USER}" ] && CREATE_ZBX_DB_USER=true # If root password is not specified use provided credentials DB_SERVER_ROOT_USER=${DB_SERVER_ROOT_USER:-${MYSQL_USER}}