aboutsummaryrefslogtreecommitdiffstats
path: root/config/snort
diff options
context:
space:
mode:
authorbmeeks8 <bmeeks8@bellsouth.net>2014-10-05 21:43:18 -0400
committerbmeeks8 <bmeeks8@bellsouth.net>2014-10-05 21:43:18 -0400
commite740c9bb49b7ceb8d35884d81db049443557b31a (patch)
tree52c31bf1a21f9ddd9bb8980160fbc2fc84abd9e6 /config/snort
parentf694b07c859d26b5bce83aa04ab6e4176bd531c5 (diff)
downloadpfsense-packages-e740c9bb49b7ceb8d35884d81db049443557b31a.tar.gz
pfsense-packages-e740c9bb49b7ceb8d35884d81db049443557b31a.tar.bz2
pfsense-packages-e740c9bb49b7ceb8d35884d81db049443557b31a.zip
Use system globals instead of hard-coded paths where possible.
Diffstat (limited to 'config/snort')
-rwxr-xr-xconfig/snort/snort_check_for_rule_updates.php4
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 5070ab23..d94d32be 100755
--- a/config/snort/snort_check_for_rule_updates.php
+++ b/config/snort/snort_check_for_rule_updates.php
@@ -65,7 +65,7 @@ if (!defined("ET_OPEN_FILE_PREFIX"))
if (!defined("ET_PRO_FILE_PREFIX"))
define("ET_PRO_FILE_PREFIX", "etpro-");
if (!defined("SNORT_IPREP_PATH"))
- define("SNORT_IPREP_PATH", "/var/db/snort/iprep/");
+ define("SNORT_IPREP_PATH", "{$g['vardb_path']}/snort/iprep/");
$snortdir = SNORTDIR;
$snortlibdir = SNORTLIBDIR;
@@ -90,7 +90,7 @@ $snortcommunityrules = $config['installedpackages']['snortglobal']['snortcommuni
$vrt_enabled = $config['installedpackages']['snortglobal']['snortdownload'] == 'on' ? 'on' : 'off';
/* Working directory for downloaded rules tarballs and extraction */
-$tmpfname = "/tmp/snort_rules_up";
+$tmpfname = "{$g['tmp_path']}/snort_rules_up";
/* Grab the Snort binary version programmatically and use it to construct */
/* the proper Snort VRT rules tarball and md5 filenames. Fallback to a */