]> arthur.barton.de Git - netdata.git/blobdiff - charts.d/mysql.chart.sh
fixed typo that fails to run mysql collector under certain conditions
[netdata.git] / charts.d / mysql.chart.sh
index 56dce42d74bb9bd3cb96e7cde467ecd9fa800103..4fcbe7b1c79dc185ebde28d01819e4c100f96eb5 100755 (executable)
@@ -200,7 +200,7 @@ mysql_check() {
 
        if [ ${#mysql_opts[@]} -eq 0 ]
                then
-               if [ ${unconfigured} -eq 1 && ${tryroot} -eq 0 ]
+               if [ ${unconfigured} -eq 1 -a ${tryroot} -eq 0 ]
                        then
                        mysql_check tryroot "${@}"
                        return $?