5
0
mirror of git://git.proxmox.com/git/pve-zsync.git synced 2025-01-31 09:46:59 +03:00

fix #1907: cron entry duplicated on disable/enable

match the interval in front of the first root

Signed-off-by: David <d.limbeck@proxmox.com>
This commit is contained in:
David 2018-09-13 11:04:54 +02:00 committed by Wolfgang Bumiller
parent 114df87800
commit f219b8fd1b

View File

@ -426,7 +426,7 @@ sub format_job {
$text = "#";
}
if ($line) {
$line =~ /^#*(.+) root/;
$line =~ /^#*\s*((?:\S+\s+){4}\S+)\s+root/;
$text .= $1;
} else {
$text .= "*/$INTERVAL * * * *";