changeset 255:d4b2bdfe47a6

Fix Yum update check to handle hyphenated aliases The notification had started reporting Remi repos each time because "\w" does not include the hyphen
author IBBoard <dev@ibboard.co.uk>
date Sun, 29 Dec 2019 14:54:45 +0000
parents 5a903aa91469
children 0ebd8efeef04
files manifests/templates.pp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/manifests/templates.pp	Sun Dec 29 12:25:14 2019 +0000
+++ b/manifests/templates.pp	Sun Dec 29 14:54:45 2019 +0000
@@ -769,7 +769,7 @@
 	}
 	# Notify of available updates
 	cron { 'check-yum-updates':
-		command => '/usr/bin/yum check-updates | tail -2 | grep -Ev "^ \* \w+: \w+"',
+		command => '/usr/bin/yum check-updates | tail -2 | grep -Ev "^ \* [[:alnum:]-]+: [[:alnum:]\.]+$"',
 		hour => '4',
 		minute => '30',
 		weekday => '0-6/3', #Sunday, Wednesday and Saturday morning