Bladeren bron

Only send tripwire emails if something has changed

Bob Mottram 10 jaren geleden
bovenliggende
commit
cd830fd845
1 gewijzigde bestanden met toevoegingen van 2 en 0 verwijderingen
  1. 2
    0
      src/freedombone

+ 2
- 0
src/freedombone Bestand weergeven

9869
   chmod +x /usr/bin/reset-tripwire
9869
   chmod +x /usr/bin/reset-tripwire
9870
 
9870
 
9871
   sed -i 's/SYSLOGREPORTING.*/SYSLOGREPORTING =false/g' /etc/tripwire/twcfg.txt
9871
   sed -i 's/SYSLOGREPORTING.*/SYSLOGREPORTING =false/g' /etc/tripwire/twcfg.txt
9872
+  # only send emails if something has changed
9873
+  sed -i 's|MAILNOVIOLATIONS.*|MAILNOVIOLATIONS = false|g' /etc/tripwire/twcfg.txt
9872
   sed -i '/# These files change the behavior of the root account/,/}/ s/.*//g' /etc/tripwire/twpol.txt
9874
   sed -i '/# These files change the behavior of the root account/,/}/ s/.*//g' /etc/tripwire/twpol.txt
9873
   sed -i 's|/etc/rc.boot.*||g' /etc/tripwire/twpol.txt
9875
   sed -i 's|/etc/rc.boot.*||g' /etc/tripwire/twpol.txt
9874
   # Don't show any changes to /proc
9876
   # Don't show any changes to /proc