Skip to content

Commit

Permalink
Merge pull request #53 from b-aktas/master
Browse files Browse the repository at this point in the history
Fix check for last update time.
  • Loading branch information
HenriWahl authored Dec 6, 2022
2 parents 416c124 + 23cd32b commit c56619f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion agents/plugins/yum
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ then
fi

# Check last time of installed Updates from yum history
LAST_UPDATE_TIMESTAMP=$(/usr/bin/yum -C --quiet --noplugins history | awk '{if(NR>2)print}' | grep ' U \|Upgrade' | cut -d '|' -f3 | head -n 1 | date -f - +"%s" || echo "-1")
LAST_UPDATE_TIMESTAMP=$(/usr/bin/yum -C --quiet --noplugins history | awk '{if(NR>2)print}' | grep ' U \|Upgrade\|Update' | cut -d '|' -f3 | head -n 1 | date -f - +"%s" || echo "-1")


echo $BOOT_REQUIRED
Expand Down

0 comments on commit c56619f

Please sign in to comment.