瀏覽代碼

Only send tripwire emails if something has changed

Bob Mottram 10 年之前
父節點
當前提交
cd830fd845
共有 1 個檔案被更改,包括 2 行新增0 行删除
  1. 2
    0
      src/freedombone

+ 2
- 0
src/freedombone 查看文件

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