]> arthur.barton.de Git - netdata.git/blobdiff - charts.d/postfix.chart.sh
Merge pull request #2021 from ktsaou/master
[netdata.git] / charts.d / postfix.chart.sh
old mode 100755 (executable)
new mode 100644 (file)
index 8106414..85604fc
@@ -23,7 +23,7 @@ postfix_check() {
        # try to find the postqueue executable
        if [ -z "$postfix_postqueue" -o ! -x "$postfix_postqueue" ]
        then
-               postfix_postqueue="`which postqueue 2>/dev/null`"
+               postfix_postqueue="$(which postqueue 2>/dev/null || command -v postqueue 2>/dev/null)"
        fi
 
        if [ -z "$postfix_postqueue" -o ! -x  "$postfix_postqueue" ]