Skip to content

Commit

Permalink
Merge pull request #61 from swampdogmash/patch-1
Browse files Browse the repository at this point in the history
Updated timeout waiting for security update checks
  • Loading branch information
HenriWahl authored Feb 15, 2024
2 parents 3cfca8c + b88fad6 commit b76286c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion agents/plugins/yum
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,8 @@ then
fi
UPDATES=$(waitmax 25 /usr/bin/yum -C --noplugins --quiet list updates | grep "\." | cut -d' ' -f1 | wc -l || echo "-1")
# check if --security is available
waitmax 10 /usr/bin/yum -C --noplugins --quiet --security list updates > /dev/null 2>&1
# Updated the timeout for the initial security list validation because it takes longer than 10 seconds on many machines
waitmax 25 /usr/bin/yum -C --noplugins --quiet --security list updates > /dev/null 2>&1
if [ $? -eq 0 ]
then
SECURITY_UPDATES=$(waitmax 25 /usr/bin/yum -C --noplugins --quiet --security list updates | grep "\." | cut -d' ' -f1 | wc -l || echo "-1")
Expand Down

0 comments on commit b76286c

Please sign in to comment.