From e57ce0600aae88f7f4f34d19613ed10d7c630884 Mon Sep 17 00:00:00 2001 From: Pablo Greco Date: Jul 27 2019 21:16:26 +0000 Subject: Fix iptraf test for CentOS 8 --- diff --git a/tests/p_iptraf/5-test_iptraf.sh b/tests/p_iptraf/5-test_iptraf.sh index 40b0acd..8697c4f 100755 --- a/tests/p_iptraf/5-test_iptraf.sh +++ b/tests/p_iptraf/5-test_iptraf.sh @@ -11,7 +11,7 @@ trap "[ -e ${TMP} ] && { /bin/rm ${TMP}; }" EXIT # iptraf only be run by root [ ${EUID} -eq 0 ] || { t_Log "Not running as root, skipping this test. Non-fatal."; exit $PASS; } -if [ "$centos_ver" = "7" ] ; then +if [ "$centos_ver" -ge 7 ] ; then IPTRAF=`which iptraf-ng` else IPTRAF=`which iptraf`