From e740c9bb49b7ceb8d35884d81db049443557b31a Mon Sep 17 00:00:00 2001 From: bmeeks8 Date: Sun, 5 Oct 2014 21:43:18 -0400 Subject: Use system globals instead of hard-coded paths where possible. --- config/snort/snort_check_for_rule_updates.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'config') 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 */ -- cgit v1.2.3