summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/upgrade_config.inc39
1 files changed, 12 insertions, 27 deletions
diff --git a/etc/inc/upgrade_config.inc b/etc/inc/upgrade_config.inc
index e2c52c7..0279809 100644
--- a/etc/inc/upgrade_config.inc
+++ b/etc/inc/upgrade_config.inc
@@ -486,17 +486,6 @@ function upgrade_025_to_026() {
$cron_item['command'] = "/usr/bin/nice -n20 /usr/local/sbin/expiretable -t 1800 snort2c";
$config['cron']['item'][] = $cron_item;
-
- $cron_item = array();
- $cron_item['minute'] = "*/5";
- $cron_item['hour'] = "*";
- $cron_item['mday'] = "*";
- $cron_item['month'] = "*";
- $cron_item['wday'] = "*";
- $cron_item['who'] = "root";
- $cron_item['command'] = "/usr/local/bin/checkreload.sh";
-
- $config['cron']['item'][] = $cron_item;
}
@@ -507,22 +496,6 @@ function upgrade_026_to_027() {
function upgrade_027_to_028() {
global $config;
- $founditem = false;
- foreach($config['cron']['item'] as $cronitem) {
- if($cronitem['command'] == "/usr/local/bin/checkreload.sh")
- $founditem = true;
- }
- if($founditem == false) {
- $cron_item = array();
- $cron_item['minute'] = "*/5";
- $cron_item['hour'] = "*";
- $cron_item['mday'] = "*";
- $cron_item['month'] = "*";
- $cron_item['wday'] = "*";
- $cron_item['who'] = "root";
- $cron_item['command'] = "/usr/local/bin/checkreload.sh";
- $config['cron']['item'][] = $cron_item;
- }
}
@@ -2227,4 +2200,16 @@ function upgrade_069_to_070() {
}
}
+function upgrade_070_to_071() {
+ global $config;
+
+ if (is_array($config['cron']['item'])) {
+ foreach($config['cron']['item'] as $idx => $cronitem) {
+ if($cronitem['command'] == "/usr/local/bin/checkreload.sh") {
+ unset($config['cron']['item'][$idx]);
+ break;
+ }
+ }
+ }
+}
?>
OpenPOWER on IntegriCloud