Skip to content

Commit

Permalink
Patch autoCheckUpdatesEnabled check (#136)
Browse files Browse the repository at this point in the history
  • Loading branch information
safinsingh authored Jan 3, 2022
1 parent 0e3b664 commit 9d720d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/checks_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 9d720d2

Please sign in to comment.