Fix MySQL user creation

This commit is contained in:
Bruno Galindro da Costa 2017-07-03 18:02:02 -03:00 committed by GitHub
parent 69f77c3b82
commit a8b3f1e2a6

View File

@ -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}}