# HG changeset patch # User IBBoard # Date 1632943544 -3600 # Node ID d539c21143bb3afa773bced9f877e6601626ce7f # Parent 18765f598232aa5366fa1dd70a5b09cc52037ba2 Get more specific with extracting Yum update list The regex would still return some additional values or blank lines. The new regex has been checked against both "yum check-update" and "yum list" and matches all currently installed version strings (including weird Git ones) diff -r 18765f598232 -r d539c21143bb manifests/templates.pp --- a/manifests/templates.pp Sat Sep 25 16:05:55 2021 +0100 +++ b/manifests/templates.pp Wed Sep 29 20:25:44 2021 +0100 @@ -840,7 +840,7 @@ } # Notify of available updates cron { 'check-yum-updates': - command => '/usr/bin/yum check-update | tail -n +2 | grep -Ev "^ \* [[:alnum:]-]+: [[:alnum:]\.]+$"', + command => '/usr/bin/yum check-update | grep -E "^[^ ]+ +[0-9a-z_\.-]+ +[^ ]+$"', hour => '4', minute => '30', weekday => '0-6/3', #Sunday, Wednesday and Saturday morning