aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrobiscool <robrob2626@yahoo.com>2009-06-08 17:43:41 -0700
committerrobiscool <robrob2626@yahoo.com>2009-06-08 17:43:41 -0700
commit6aefeb8d9be1acd1e0cab8c3fde76f7a175740f1 (patch)
tree397648fe3656942be8e933250e807371f88c5357
parent8cf631a6315b426ebb6622fefe7367bdc6172398 (diff)
downloadpfsense-packages-6aefeb8d9be1acd1e0cab8c3fde76f7a175740f1.tar.gz
pfsense-packages-6aefeb8d9be1acd1e0cab8c3fde76f7a175740f1.tar.bz2
pfsense-packages-6aefeb8d9be1acd1e0cab8c3fde76f7a175740f1.zip
snort_download_rules update june 8
-rw-r--r--config/snort/snort_download_rules.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/config/snort/snort_download_rules.php b/config/snort/snort_download_rules.php
index dbbc727e..e82a0239 100644
--- a/config/snort/snort_download_rules.php
+++ b/config/snort/snort_download_rules.php
@@ -207,9 +207,9 @@ if (0 == filesize("{$tmpfname}/snortrules-snapshot-2.8.tar.gz.md5")){
/* Check if were up to date */
if (file_exists("{$snortdir}/snortrules-snapshot-2.8.tar.gz.md5")){
$md5_check_new_parse = file_get_contents("{$tmpfname}/{$snort_filename_md5}");
-$md5_check_new = `/bin/echo "{$md5_check_new_parse}" | /usr/bin/awk '{ print $4 }'`;
+$md5_check_new = `/bin/echo "{$md5_check_new_parse}" | /usr/bin/awk '{ print $1 }'`;
$md5_check_old_parse = file_get_contents("{$snortdir}/{$snort_filename_md5}");
-$md5_check_old = `/bin/echo "{$md5_check_old_parse}" | /usr/bin/awk '{ print $4 }'`;
+$md5_check_old = `/bin/echo "{$md5_check_old_parse}" | /usr/bin/awk '{ print $1 }'`;
/* Write out time of last sucsessful md5 to cache */
$config['installedpackages']['snort']['last_md5_download'] = date("Y-M-jS-h:i-A");
write_config();