IS_NOTUPGRADED not fully working #66

Closed
opened 2019-03-05 10:46:56 +01:00 by lpoujol · 2 comments
Owner

In some cases IS_NOTUPGRADED is thrown while the server was recently upgraded.
Might be tied to rotation of dpkg.log

See this ticket for internal reference

In some cases IS_NOTUPGRADED is thrown while the server was recently upgraded. Might be tied to rotation of dpkg.log See [this ticket](https://gitea.evolix.org/evolix/evocheck-private/issues/2) for internal reference
benpro self-assigned this 2019-03-05 11:07:56 +01:00
benpro started working 2019-03-05 11:10:18 +01:00
Contributor

if zgrep -hqs upgrade /var/log/dpkg.log*; then

The bug is here. grep return 1 event if it matches upgrade pattern.

`if zgrep -hqs upgrade /var/log/dpkg.log*; then` The bug is here. `grep` return 1 event if it matches `upgrade` pattern.
Contributor

I have a patch in #67.

I have a patch in #67.
benpro stopped working 2019-03-05 11:29:40 +01:00
19min 22s
benpro added the
bug
label 2019-03-05 11:30:10 +01:00
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Total time spent: 19 minutes 22 seconds
benpro
19 minutes 22 seconds
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: evolix/evocheck#66
No description provided.