# HG changeset patch # User IBBoard # Date 1665227963 -3600 # Node ID de6f43c2df6693dce55f8b4676521c3aaf7757d6 # Parent 23eac935cffaf1a0fa25d2fb13698c669ac8e645 Fix the "needs updating" regex Previously we only got the longest one, because the output is padded at the end with whitespace diff -r 23eac935cffa -r de6f43c2df66 manifests/templates.pp --- a/manifests/templates.pp Sat Oct 08 12:18:44 2022 +0100 +++ b/manifests/templates.pp Sat Oct 08 12:19:23 2022 +0100 @@ -923,7 +923,7 @@ } # Notify of available updates cron { 'check-yum-updates': - command => '/usr/bin/yum check-update | grep -E "^[^ ]+ +[0-9a-z_:\.\+-]+ +[^ ]+ *$"', + command => '/usr/bin/yum check-update | grep -E "^[^ ]+ +[0-9a-z:_\.-]+ +[^ ]+\s*\$"', hour => '4', minute => '30', weekday => '0-6/3', #Sunday, Wednesday and Saturday morning