Project

General

Profile

« Previous | Next » 

Revision 1fdecbe6

Added by Pi Ba about 8 years ago

cron, fix job removal by index splice and write valid schedules for ramdrive backups

(cherry picked from commit ce3371fe969733c92cd91fe31d2acb69fc877986)

View differences:

src/etc/inc/services.inc
2860 2860
		}
2861 2861
	} else {
2862 2862
		if ($is_installed == true) {
2863
			unset($config['cron']['item'][$x]);
2863
			array_splice($config['cron']['item'], $x, 1);
2864 2864
			write_config(sprintf(gettext("Removed cron job for %s"), $command));
2865 2865
		} else {
2866 2866
			$cron_changed = false;

Also available in: Unified diff