We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 416c124 + 23cd32b commit c56619fCopy full SHA for c56619f
1 file changed
agents/plugins/yum
@@ -108,7 +108,7 @@ then
108
fi
109
110
# Check last time of installed Updates from yum history
111
- 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")
112
113
114
echo $BOOT_REQUIRED
0 commit comments