From 19ffe6ac4218b0d4f171ae0ee12d723293f7c9c5 Mon Sep 17 00:00:00 2001 From: thompsa Date: Thu, 28 Jan 2010 14:40:42 +1300 Subject: Fix package uninstall by removing barnyard first. --- config/snort-dev/snort.inc | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'config/snort-dev') 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*/ -- cgit v1.2.3