diff --git a/include/functions b/include/functions old mode 100755 new mode 100644 diff --git a/include/tests_databases b/include/tests_databases index b223cd8b..2ebf2972 100644 --- a/include/tests_databases +++ b/include/tests_databases @@ -78,8 +78,8 @@ # "-u root --password=" avoids ~/.my.cnf authentication settings # "plugin = 'mysql_native_password' AND authentication_string = ''" avoids false positives when secure plugins are used - FIND=$(${MYSQLCLIENTBINARY} --no-defaults -u root --password= --silent --batch --execute="SELECT count(*) FROM mysql.user WHERE user = 'root' AND plugin = 'mysql_native_password' AND authentication_string = ''" mysql 2>/dev/null) - if [ "${FIND}" > "0" ]; then + FIND=$(${MYSQLCLIENTBINARY} --no-defaults -u root --password= --silent --batch --execute="SELECT count(*) FROM mysql.user WHERE user = 'root' AND plugin = 'mysql_native_password' AND authentication_string = ''" mysql 2>/dev/null; echo $?) + if [ "${FIND}" = "0" ]; then LogText "Result: Login succeeded, no MySQL root password set!" ReportWarning ${TEST_NO} "No MySQL root password set" Display --indent 4 --text "- Checking empty MySQL root password" --result "${STATUS_WARNING}" --color RED diff --git a/include/tests_logging b/include/tests_logging old mode 100755 new mode 100644 diff --git a/include/tests_squid b/include/tests_squid old mode 100755 new mode 100644 diff --git a/include/tests_time b/include/tests_time old mode 100755 new mode 100644