From c57fc83dc8daad1da17042ac2b8e2c3b3c277edc Mon Sep 17 00:00:00 2001 From: Justin Oros Date: Mon, 2 Nov 2026 17:37:50 -0700 Subject: [PATCH] Fall back to dpkg status time in health-check.sh last update check --- health-check.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/health-check.sh b/health-check.sh index 6f90261..69a6754 100755 --- a/health-check.sh +++ b/health-check.sh @@ -246,6 +246,10 @@ check_updates() { last_epoch="" fi + if [ -z "$last_epoch" ] && [ -f /var/lib/dpkg/status ]; then + last_epoch=$(stat -c %Y /var/lib/dpkg/status 2>/dev/null || echo "") + fi + if [ -n "$last_epoch" ]; then last_days=$(( (now - last_epoch) / 86400 )) if [ "$last_days" -ge 30 ]; then