aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorbmeeks8 <bmeeks8@bellsouth.net>2014-04-15 11:01:50 -0400
committerErmal <eri@pfsense.org>2014-04-28 08:03:37 +0000
commit44a2a6a3a72cf399dfb1f2fde9e2c312b58d4c5f (patch)
tree77e511b88a15f4bffd744ab065a30440bf50c274 /config
parent311be16b46ce02624d0a049e6c384c53ad7d5e3c (diff)
downloadpfsense-packages-44a2a6a3a72cf399dfb1f2fde9e2c312b58d4c5f.tar.gz
pfsense-packages-44a2a6a3a72cf399dfb1f2fde9e2c312b58d4c5f.tar.bz2
pfsense-packages-44a2a6a3a72cf399dfb1f2fde9e2c312b58d4c5f.zip
Can't use constant for safemkdir() and add history tag to config write.
Diffstat (limited to 'config')
-rwxr-xr-xconfig/snort/snort_check_for_rule_updates.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/config/snort/snort_check_for_rule_updates.php b/config/snort/snort_check_for_rule_updates.php
index f16e3310..667f4044 100755
--- a/config/snort/snort_check_for_rule_updates.php
+++ b/config/snort/snort_check_for_rule_updates.php
@@ -68,6 +68,7 @@ if (!defined("IPREP_PATH"))
$snortdir = SNORTDIR;
$snortlibdir = SNORTLIBDIR;
$snortlogdir = SNORTLOGDIR;
+$snortiprepdir = IPREP_PATH;
$snort_rules_upd_log = RULES_UPD_LOGFILE;
/* Save the state of $pkg_interface so we can restore it */
@@ -415,7 +416,7 @@ safe_mkdir("{$snortdir}/preproc_rules");
safe_mkdir("{$tmpfname}");
safe_mkdir("{$snortlibdir}/dynamicrules");
safe_mkdir("{$snortlogdir}");
-safe_mkdir(IPREP_PATH);
+safe_mkdir("{$snortiprepdir}");
/* See if we need to automatically clear the Update Log based on 1024K size limit */
if (file_exists($snort_rules_upd_log)) {
@@ -812,5 +813,5 @@ if ($update_errors)
else
$config['installedpackages']['snortglobal']['last_rule_upd_status'] = gettext("success");
$config['installedpackages']['snortglobal']['last_rule_upd_time'] = time();
-write_config();
+write_config("Snort pkg: updated status for updated rules package(s) check.");
?>