aboutsummaryrefslogtreecommitdiffstats
path: root/config/snort/snort_download_rules.php
diff options
context:
space:
mode:
authorjim-p <jim@pingle.org>2009-10-11 23:55:49 -0400
committerjim-p <jim@pingle.org>2009-10-11 23:55:49 -0400
commit85d79d59f300017bf7834e9f2daa3291df142c62 (patch)
tree7132edb13f72bf636e98aa95ed62845c68c24ebf /config/snort/snort_download_rules.php
parent489dbb60f1083cbd5b5d55b281ccb170b1515b55 (diff)
downloadpfsense-packages-85d79d59f300017bf7834e9f2daa3291df142c62.tar.gz
pfsense-packages-85d79d59f300017bf7834e9f2daa3291df142c62.tar.bz2
pfsense-packages-85d79d59f300017bf7834e9f2daa3291df142c62.zip
Make snort download to /root/ instead of /tmp/ - rules are way too large to fit into /tmp ramdisk on nano.
Diffstat (limited to 'config/snort/snort_download_rules.php')
-rw-r--r--config/snort/snort_download_rules.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/config/snort/snort_download_rules.php b/config/snort/snort_download_rules.php
index 6cb2f808..1a9998ff 100644
--- a/config/snort/snort_download_rules.php
+++ b/config/snort/snort_download_rules.php
@@ -28,7 +28,7 @@
*/
/* Setup enviroment */
-$tmpfname = "/tmp/snort_rules_up";
+$tmpfname = "/root/snort_rules_up";
$snortdir = "/usr/local/etc/snort_bkup";
$snortdir_wan = "/usr/local/etc/snort";
$snort_filename_md5 = "snortrules-snapshot-2.8.tar.gz.md5";
@@ -543,7 +543,7 @@ if (file_exists("{$snortdir}/so_rules/precompiled/FreeBSD-7.0/i386/2.8.4/")) {
update_status(gettext("Done copying so_rules."));
} else {
update_status(gettext("Directory so_rules does not exist..."));
- update_output_window(gettext("Error copping so_rules..."));
+ update_output_window(gettext("Error copying so_rules..."));
exit(0);
}
}
@@ -731,7 +731,7 @@ if ($snort_md5_check_ok != on || $emerg_md5_check_chk_ok != on || $pfsense_md5_c
/* remove old $tmpfname files */
if (file_exists("{$tmpfname}")) {
update_status(gettext("Cleaning up..."));
- exec("/bin/rm -r /tmp/snort_rules_up");
+ exec("/bin/rm -r /root/snort_rules_up");
// apc_clear_cache();
}