From 2c0ccd6d9e2e0536d0da9e2140c8e114168f50f7 Mon Sep 17 00:00:00 2001 From: robiscool Date: Sun, 31 May 2009 21:16:23 -0700 Subject: if download fails dont delete the snort/rules directory --- config/snort/snort_download_rules.php | 8 -------- 1 file changed, 8 deletions(-) (limited to 'config/snort') diff --git a/config/snort/snort_download_rules.php b/config/snort/snort_download_rules.php index 02290c7d..8d795934 100644 --- a/config/snort/snort_download_rules.php +++ b/config/snort/snort_download_rules.php @@ -183,14 +183,6 @@ $md5_check_old = `/bin/echo "{$md5_check_old_parse}" | /usr/bin/awk '{ print $4 /* echo "You are Not Up to date!\n"; */ update_status(gettext("You are NOT up to date...")); -/* remove old {$snortdir} files */ -if (file_exists("{$snortdir}")) { - /* echo "removing old {$snortdir} files\n"; */ - update_status(gettext("Removing old snort rules...")); - update_output_window(gettext("May take a while...")); - exec("/bin/rm -r {$snortdir}/*"); -} - /* download snortrules file */ if (file_exists("{$tmpfname}/{$snort_filename}")) { /* echo "{$snort_filename} does exists\n"; */ -- cgit v1.2.3