[pve-devel] applied: [PATCH v2 zsync] fix #1907: cron entry duplicated on disable/enable

Wolfgang Bumiller w.bumiller at proxmox.com
Tue Sep 18 10:11:05 CEST 2018


applied

On Thu, Sep 13, 2018 at 11:04:54AM +0200, David wrote:
> match the interval in front of the first root
> 
> Signed-off-by: David <d.limbeck at proxmox.com>
> ---
> since v1:
>     changed the regex to accept any interval
>  pve-zsync | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/pve-zsync b/pve-zsync
> index 10d6bac..bf00c7a 100755
> --- a/pve-zsync
> +++ b/pve-zsync
> @@ -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 * * * *";
> -- 
> 2.11.0



More information about the pve-devel mailing list