diff options
author | jim-p <jim@pingle.org> | 2009-10-11 23:55:49 -0400 |
---|---|---|
committer | jim-p <jim@pingle.org> | 2009-10-11 23:55:49 -0400 |
commit | 85d79d59f300017bf7834e9f2daa3291df142c62 (patch) | |
tree | 7132edb13f72bf636e98aa95ed62845c68c24ebf /config/snort/snort_check_for_rule_updates.php | |
parent | 489dbb60f1083cbd5b5d55b281ccb170b1515b55 (diff) | |
download | pfsense-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_check_for_rule_updates.php')
-rw-r--r-- | config/snort/snort_check_for_rule_updates.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/config/snort/snort_check_for_rule_updates.php b/config/snort/snort_check_for_rule_updates.php index 17f56081..8d308245 100644 --- a/config/snort/snort_check_for_rule_updates.php +++ b/config/snort/snort_check_for_rule_updates.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"; @@ -611,7 +611,7 @@ echo "May take a while...\n"; /* remove old $tmpfname files */ if (file_exists("{$tmpfname}")) { echo "Cleaning up...\n"; - exec("/bin/rm -r /tmp/snort_rules_up"); + exec("/bin/rm -r /root/snort_rules_up"); } /* php code to flush out cache some people are reportting missing files this might help */ |