Skip to content

Commit c56619f

Browse files
authored
Merge pull request #53 from b-aktas/master
Fix check for last update time.
2 parents 416c124 + 23cd32b commit c56619f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • agents/plugins

agents/plugins/yum

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ then
108108
fi
109109

110110
# 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")
111+
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")
112112

113113

114114
echo $BOOT_REQUIRED

0 commit comments

Comments
 (0)