aboutsummaryrefslogtreecommitdiffstats
path: root/config/snort-dev
diff options
context:
space:
mode:
authorthompsa <andy@fud.org.nz>2010-01-28 14:40:42 +1300
committerthompsa <andy@fud.org.nz>2010-01-28 14:40:42 +1300
commit19ffe6ac4218b0d4f171ae0ee12d723293f7c9c5 (patch)
tree75b1e3aff0817db9b30449c70f1e5b839dc0a56f /config/snort-dev
parent8ac775071548e08a09b2c49ee4823cd8efd8a90b (diff)
downloadpfsense-packages-19ffe6ac4218b0d4f171ae0ee12d723293f7c9c5.tar.gz
pfsense-packages-19ffe6ac4218b0d4f171ae0ee12d723293f7c9c5.tar.bz2
pfsense-packages-19ffe6ac4218b0d4f171ae0ee12d723293f7c9c5.zip
Fix package uninstall by removing barnyard first.
Diffstat (limited to 'config/snort-dev')
-rw-r--r--config/snort-dev/snort.inc5
1 files changed, 1 insertions, 4 deletions
diff --git a/config/snort-dev/snort.inc b/config/snort-dev/snort.inc
index 4cd26acd..76a1e855 100644
--- a/config/snort-dev/snort.inc
+++ b/config/snort-dev/snort.inc
@@ -687,11 +687,8 @@ function snort_deinstall()
exec("/usr/sbin/pw userdel snort");
exec("/usr/sbin/pw groupdel snort");
exec("rm -rf /usr/local/etc/snort*");
+ exec("cd /var/db/pkg && pkg_delete `ls | grep barnyard2`");
exec("cd /var/db/pkg && pkg_delete `ls | grep snort`");
- exec("cd /var/db/pkg && pkg_delete `ls | grep mysql-client`");
- exec("cd /var/db/pkg && pkg_delete `ls | grep libdnet`");
- exec("/usr/usr/bin/killall -9 snort");
- exec("/usr/usr/bin/killall snort");
/* Remove snort cron entries Ugly code needs smoothness*/