]> arthur.barton.de Git - netdata.git/commitdiff
fixed typo that fails to run mysql collector under certain conditions
authorCosta Tsaousis <costa@tsaousis.gr>
Mon, 30 May 2016 23:18:13 +0000 (02:18 +0300)
committerCosta Tsaousis <costa@tsaousis.gr>
Mon, 30 May 2016 23:18:13 +0000 (02:18 +0300)
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 $?