# HG changeset patch # User IBBoard # Date 1632578373 -3600 # Node ID 752c0861a7c34348c9c002510726848496bbc31f # Parent a8a7b2b343b5e96bad4a50e1e474a063095fe2e1 Fix tailing output in update check "-2" means "last two lines". We want "not the first two lines" because the first two are the metadata date and a blank line. This should stop the emails that are just the metadata date! diff -r a8a7b2b343b5 -r 752c0861a7c3 manifests/templates.pp --- a/manifests/templates.pp Sat Jul 17 15:12:13 2021 +0100 +++ b/manifests/templates.pp Sat Sep 25 14:59:33 2021 +0100 @@ -840,7 +840,7 @@ } # Notify of available updates cron { 'check-yum-updates': - command => '/usr/bin/yum check-update | tail -2 | grep -Ev "^ \* [[:alnum:]-]+: [[:alnum:]\.]+$"', + command => '/usr/bin/yum check-update | tail -n +2 | grep -Ev "^ \* [[:alnum:]-]+: [[:alnum:]\.]+$"', hour => '4', minute => '30', weekday => '0-6/3', #Sunday, Wednesday and Saturday morning