From cd830fd84539d024a3fe75255c7ffdc7198c0462 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sat, 15 Aug 2015 17:55:49 +0100 Subject: [PATCH] Only send tripwire emails if something has changed --- src/freedombone | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/freedombone b/src/freedombone index 1754b4f7..41ea643c 100755 --- a/src/freedombone +++ b/src/freedombone @@ -9869,6 +9869,8 @@ function intrusion_detection { chmod +x /usr/bin/reset-tripwire sed -i 's/SYSLOGREPORTING.*/SYSLOGREPORTING =false/g' /etc/tripwire/twcfg.txt + # only send emails if something has changed + sed -i 's|MAILNOVIOLATIONS.*|MAILNOVIOLATIONS = false|g' /etc/tripwire/twcfg.txt sed -i '/# These files change the behavior of the root account/,/}/ s/.*//g' /etc/tripwire/twpol.txt sed -i 's|/etc/rc.boot.*||g' /etc/tripwire/twpol.txt # Don't show any changes to /proc