fix(99.4): do not stderr iptables warning on buster

This commit is contained in:
kevin.tanguy 2019-08-14 10:36:25 +02:00
parent 13783423c2
commit 89cf484cb9
2 changed files with 7 additions and 1 deletions

View File

@ -26,7 +26,7 @@ audit () {
if [ "$FNRET" != 0 ]; then
crit "$PACKAGE is not installed!"
else
ipt=$($SUDO_CMD $PACKAGE -nL || true )
ipt=$($SUDO_CMD $PACKAGE -nL 2>/dev/null || true )
if [[ -z $ipt ]]; then
crit "Empty return from $PACKAGE command. Aborting..."
return

6
debian/changelog vendored
View File

@ -1,3 +1,9 @@
cis-hardening (1.2-5) unstable; urgency=medium
* fix(99.4): do not stderr iptables warning on buster
-- Kevin Tanguy <kevin.tanguy@ovh.net> Wed, 14 Aug 2019 10:34:15 +0200
cis-hardening (1.2-4) unstable; urgency=medium
* changelog: update changelog