Project

General

Profile

« Previous | Next » 

Revision 1dd1832f

Added by Steve Beaver almost 4 years ago

Install ACB cron job on upgrade

View differences:

src/etc/inc/upgrade_config.inc
6547 6547
	unset($config['ipsec']['vtimaps']);
6548 6548
}
6549 6549

  
6550
/*
6551
 * Ensure the ACB cron job is installed after upgrade if ACB is enabled
6552
 * If the cron job already exists, no harm is done
6553
 */
6554
function upgrade_219_to_220() {
6555
	global $config;
6556

  
6557
	if ($config['system']['acb']['enable'] == "yes" && file_exists("/usr/local/sbin/acbupload.php")) {
6558
		install_cron_job("/usr/bin/nice -n20 /usr/local/bin/php /usr/local/sbin/acbupload.php", true, "*");
6559
	}
6560
}
6561

  
6550 6562
/*
6551 6563
 * Special function that is called independent of current config version. It's
6552 6564
 * a workaround to have config_upgrade running on older versions after next

Also available in: Unified diff