diff options
author | Simon Rettberg | 2024-01-19 12:21:29 +0100 |
---|---|---|
committer | Simon Rettberg | 2024-01-19 12:21:29 +0100 |
commit | f5b6c8011bf8629c8870cc013577ffc101ee87bb (patch) | |
tree | cc992d3adf030e3a0cb0f901d119ac86e9c428a2 | |
parent | [dnbd3] Add warning if proxy servers exist but DNBD3 is disabled for VMs (diff) | |
download | slx-admin-f5b6c8011bf8629c8870cc013577ffc101ee87bb.tar.gz slx-admin-f5b6c8011bf8629c8870cc013577ffc101ee87bb.tar.xz slx-admin-f5b6c8011bf8629c8870cc013577ffc101ee87bb.zip |
[systemstatus] Better detection for latest updates timestamp
-rw-r--r-- | modules-available/systemstatus/inc/systemstatus.inc.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules-available/systemstatus/inc/systemstatus.inc.php b/modules-available/systemstatus/inc/systemstatus.inc.php index dc81419f..c50e0ef6 100644 --- a/modules-available/systemstatus/inc/systemstatus.inc.php +++ b/modules-available/systemstatus/inc/systemstatus.inc.php @@ -71,7 +71,7 @@ class SystemStatus $updateDbTime = 0; foreach (glob('/var/lib/apt/lists/*_dists_' . ($osRelease['VERSION_CODENAME'] ?? '') . '*_InRelease', GLOB_NOSORT) as $f) { $b = basename($f); - if (preg_match('/dists_[a-z]+(?:[\-_]updates)?_InRelease$/', $b)) { + if (preg_match('/dists_[a-z]+(?:[\-_](?:updates|security))?_InRelease$/', $b)) { $updateDbTime = max($updateDbTime, filemtime($f)); } } |