Skip to content

Commit

Permalink
Added basic RHEL8 support
Browse files Browse the repository at this point in the history
See issue #5
  • Loading branch information
red15 authored Jan 29, 2021
1 parent 404dfa2 commit c466e31
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion check-yum-updates/check-yum-updates.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,13 @@ elif grep -q -i "release 7" /etc/redhat-release ; then
IMPORTANT=$(yum updateinfo list --sec-severity=Important | grep Important | wc -l)
LOW=$(yum updateinfo list --sec-severity=Low | grep Low | wc -l)
CRITICAL=$(yum updateinfo list --sec-severity=Critical | grep Critical | wc -l)
elif grep -q -i "release 8" /etc/redhat-release ; then
MODERATE=$(yum updateinfo list --sec-severity=Moderate | grep Moderate | wc -l)
IMPORTANT=$(yum updateinfo list --sec-severity=Important | grep Important | wc -l)
LOW=$(yum updateinfo list --sec-severity=Low | grep Low | wc -l)
CRITICAL=$(yum updateinfo list --sec-severity=Critical | grep Critical | wc -l)
else
echo "Running neither RHEL6.x nor RHEL 7.x !"
echo "Running neither RHEL6.x/7.x/8.x !"
fi


Expand Down

0 comments on commit c466e31

Please sign in to comment.