From 9d720d266dec672327c4e0c6380d909a475904a7 Mon Sep 17 00:00:00 2001 From: Safin Singh <42120904+safinsingh@users.noreply.github.com> Date: Mon, 3 Jan 2022 14:52:39 -0800 Subject: [PATCH] Patch autoCheckUpdatesEnabled check (#136) --- cmd/checks_linux.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/checks_linux.go b/cmd/checks_linux.go index 2fc960cd..c7f49658 100644 --- a/cmd/checks_linux.go +++ b/cmd/checks_linux.go @@ -167,7 +167,7 @@ func kernelVersion(version string) (bool, error) { } func autoCheckUpdatesEnabled() (bool, error) { - return fileContainsRegex("/etc/apt/apt.conf.d/20auto-upgrades", `APT::Periodic::Update-Package-Lists( |)"1";`) + return dirContainsRegex("/etc/apt/apt.conf.d/", `APT::Periodic::Update-Package-Lists\s+"1";`) } // func permissionIs(filePath, permissionToCheck string) (bool, error) {