aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorBBcan177 <bbcan177@gmail.com>2015-02-19 00:41:41 -0500
committerBBcan177 <bbcan177@gmail.com>2015-02-19 00:41:41 -0500
commit7a9603b71a68fd1edec153151ce78eff7a17b05f (patch)
tree90a87fb97dbdad229f9d7ace7f595374737621f8 /config
parentf80245904687c0adca749a62739dd2898ebd788e (diff)
downloadpfsense-packages-7a9603b71a68fd1edec153151ce78eff7a17b05f.tar.gz
pfsense-packages-7a9603b71a68fd1edec153151ce78eff7a17b05f.tar.bz2
pfsense-packages-7a9603b71a68fd1edec153151ce78eff7a17b05f.zip
pfBlockerNG - Fix missing Start Hour code
Diffstat (limited to 'config')
-rw-r--r--config/pfblockerng/pfblockerng.inc6
1 files changed, 4 insertions, 2 deletions
diff --git a/config/pfblockerng/pfblockerng.inc b/config/pfblockerng/pfblockerng.inc
index df546963..dbe0a7f5 100644
--- a/config/pfblockerng/pfblockerng.inc
+++ b/config/pfblockerng/pfblockerng.inc
@@ -440,6 +440,8 @@ function sync_package_pfblockerng($cron = "") {
$pfb['validate']= $pfb['config']['pfblocker_cb'];
# User Defined CRON Start Minute
$pfb['min'] = $pfb['config']['pfb_min'];
+ # User Defined CRON Start Hour
+ $pfb['hour'] = $pfb['config']['pfb_hour'];
# Reloads Existing Blocklists without Downloading New Lists
$pfb['reuse'] = $pfb['config']['pfb_reuse'];
# Enable OpenVPN AutoRules
@@ -2339,13 +2341,13 @@ function sync_package_pfblockerng($cron = "") {
# Define pfBlockerNG CRON Job
$pfb_cmd = "/usr/local/bin/php /usr/local/www/pfblockerng/pfblockerng.php cron >> {$pfb['log']} 2>&1";
# $pfb['min'] ( User Defined Variable. Variable defined at start of Script )
- $pfb_hour = "*";
+ # $pfb['hour'] ( User Defined Variable. Variable defined at start of Script )
$pfb_mday = "*";
$pfb_month = "*";
$pfb_wday = "*";
$pfb_who = "root";
- install_cron_job($pfb_cmd, true, $pfb['min'], $pfb_hour, $pfb_mday, $pfb_month, $pfb_wday, $pfb_who);
+ install_cron_job($pfb_cmd, true, $pfb['min'], $pfb['hour'], $pfb_mday, $pfb_month, $pfb_wday, $pfb_who);
}
# Clear any existing pfBlockerNG MaxMind CRON Job