From d08712a31a67e2dad2f84f719a6539b0ab73e64c Mon Sep 17 00:00:00 2001 From: Jakub Janco Date: Tue, 4 Sep 2018 17:08:06 +0200 Subject: [PATCH] Fix OR in if statement to evaulate correctly Related: BZ#1620520 --- root-common/usr/bin/run-mysqld | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/root-common/usr/bin/run-mysqld b/root-common/usr/bin/run-mysqld index 9482a25..36d5bf8 100755 --- a/root-common/usr/bin/run-mysqld +++ b/root-common/usr/bin/run-mysqld @@ -21,7 +21,7 @@ else fi # set mysql_flags and admin_flagsadmin_flags properly -if [ -z "${MYSQL_ROOT_PASSWORD:-}" || is_allowing_connection_with_empty_password ]; then +if [ -z "${MYSQL_ROOT_PASSWORD:-}" ] || is_allowing_connection_with_empty_password; then mysql_flags="-u root --socket=$MYSQL_LOCAL_SOCKET" else mysql_flags="-u root --socket=$MYSQL_LOCAL_SOCKET -p${MYSQL_ROOT_PASSWORD}"