From 5042ab4957edce6519a824d84e1bae38701dc9a7 Mon Sep 17 00:00:00 2001 From: Keir Badger Date: Tue, 7 May 2024 07:33:21 +0000 Subject: [PATCH] make sure kernal updates trigger an event --- files/notify_updates | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/notify_updates b/files/notify_updates index b0e6377..db7c99d 100755 --- a/files/notify_updates +++ b/files/notify_updates @@ -26,7 +26,7 @@ if [ -z "${STATELESS_INSTANCE}" ]; then echo 'STATELESS_INSTANCE should be set to 0 or 1' >&1 fi -updates="$(/usr/bin/dnf check-update | tail -n +2 )" +updates="$(/usr/bin/dnf check-update 2>&1 | tail -n +2 )" if [[ -n "${updates}" ]]; then /usr/local/bin/send_datadog_event.py "${updates}" fi