Remove snort community rules from system and config.
authorChristian Schmidt <maniacikarus@ipfire.org>
Sun, 19 Jul 2009 10:25:01 +0000 (12:25 +0200)
committerChristian Schmidt <maniacikarus@ipfire.org>
Sun, 19 Jul 2009 10:25:01 +0000 (12:25 +0200)
config/rootfiles/core/29/update.sh

index 498dc41f8160e16a926e998b887b8244d86ff5f0..cb8e299188413ad3b16d774e82bb66df2689edea 100644 (file)
 . /opt/pakfire/lib/functions.sh
 /usr/local/bin/backupctrl exclude >/dev/null 2>&1
 /etc/init.d/collectd stop
+/etc/init.d/snort stop
 extract_files
 rm -rf /var/log/rrd*//collectd/localhost/disk-*[0-9]*
 rm -rf /srv/web/ipfire/cgi-bin/networks.cgi
+rm -rf /etc/snort/rules/community-*
+cat /etc/snort/snort.conf | grep -v community- > /tmp/snort.conf
+mv -f /tmp/snort.conf /etc/snort/snort.conf
 /etc/init.d/collectd start
+/etc/init.d/snort start
 perl -e "require '/var/ipfire/lang.pl'; &Lang::BuildCacheLang"
 depmod -a