aboutsummaryrefslogtreecommitdiffstats
path: root/config/snort
diff options
context:
space:
mode:
authorrobiscool <robrob2626@yahoo.com>2009-05-31 21:16:23 -0700
committerrobiscool <robrob2626@yahoo.com>2009-05-31 21:16:23 -0700
commit2c0ccd6d9e2e0536d0da9e2140c8e114168f50f7 (patch)
tree24fcc812640cffb3a5f8332b0a7671cd19c0048e /config/snort
parentc643744a2c193dbcf92a2a9703c8e27bb2472737 (diff)
downloadpfsense-packages-2c0ccd6d9e2e0536d0da9e2140c8e114168f50f7.tar.gz
pfsense-packages-2c0ccd6d9e2e0536d0da9e2140c8e114168f50f7.tar.bz2
pfsense-packages-2c0ccd6d9e2e0536d0da9e2140c8e114168f50f7.zip
if download fails dont delete the snort/rules directory
Diffstat (limited to 'config/snort')
-rw-r--r--config/snort/snort_download_rules.php8
1 files changed, 0 insertions, 8 deletions
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"; */