forked from evolix/evocheck
#70141 : Corriger evocheck IS_NOTUPGRADED
This commit is contained in:
parent
8ae087b799
commit
6ca6686cb3
|
@ -657,7 +657,7 @@ check_notupgraded() {
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
if $upgraded; then
|
if $upgraded; then
|
||||||
last_upgrade=$(date +%s -d "$(zgrep -h upgrade /var/log/dpkg.log* | sort -n | tail -1 | cut -f1 -d ' ')")
|
last_upgrade=$(date +%s -d "$(zgrep --no-filename --no-messages upgrade /var/log/dpkg.log* | sort -n | tail -1 | cut -f1 -d ' ')")
|
||||||
fi
|
fi
|
||||||
if grep -qs '^mailto="listupgrade-todo@' /etc/evolinux/listupgrade.cnf \
|
if grep -qs '^mailto="listupgrade-todo@' /etc/evolinux/listupgrade.cnf \
|
||||||
|| grep -qs -E '^[[:digit:]]+[[:space:]]+[[:digit:]]+[[:space:]]+[^\*]' /etc/cron.d/listupgrade; then
|
|| grep -qs -E '^[[:digit:]]+[[:space:]]+[[:digit:]]+[[:space:]]+[^\*]' /etc/cron.d/listupgrade; then
|
||||||
|
|
Loading…
Reference in a new issue