aboutsummaryrefslogtreecommitdiffstats
path: root/config/havp
diff options
context:
space:
mode:
authordoktornotor <notordoktor@gmail.com>2015-09-10 20:35:26 +0200
committerdoktornotor <notordoktor@gmail.com>2015-09-10 20:35:26 +0200
commit8cbe072937b145e384f6278e9856c5fc92ee90bf (patch)
tree1a026025d8df5647f9b518008af2d2f758a82d14 /config/havp
parentd8a8828ab693a3db1ac2f93b8b52f8816c3866d0 (diff)
downloadpfsense-packages-8cbe072937b145e384f6278e9856c5fc92ee90bf.tar.gz
pfsense-packages-8cbe072937b145e384f6278e9856c5fc92ee90bf.tar.bz2
pfsense-packages-8cbe072937b145e384f6278e9856c5fc92ee90bf.zip
havp - fix crontab handling (Bug #5117)
Diffstat (limited to 'config/havp')
-rw-r--r--config/havp/havp.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/config/havp/havp.inc b/config/havp/havp.inc
index 5ecfcc29..38412f31 100644
--- a/config/havp/havp.inc
+++ b/config/havp/havp.inc
@@ -521,12 +521,12 @@ function havp_reconfigure_cron() {
$optval = array("", "*/1", "*/2", "*/3", "*/4", "*/6", "*/8", "*/12", "0");
$opt = array("0", "*", "*", "*", "*", "root");
$opt[1] = $optval[$havp_config[F_HAVPUPDATE]];
- $on = ($opt[1] !== "");
+ $on = ($opt[1] != "");
$crontask = "/usr/bin/nice -n20 " . HVDEF_AVUPD_SCRIPT;
// Set new cron task or remove it if inactive
if ($on === true) {
- install_cron_job($crontask, $on, $opt);
+ install_cron_job($crontask, true, $opt[0], $opt[1], $opt[2], $opt[3], $opt[4], $opt[5]);
} else {
install_cron_job($crontask, false);
}