]> arthur.barton.de Git - netdata.git/blobdiff - charts.d/postfix.chart.sh
Merge pull request #1284 from ktsaou/master
[netdata.git] / charts.d / postfix.chart.sh
index 8106414a1f6da024482f348782bb97e2e5ec0abf..85604fcbe2f6e2fdd30c4c16b26d253f745495c7 100755 (executable)
@@ -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" ]