From 8fe93728bf24b7dc326b91f53114d4ad9900ec7b Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Thu, 4 May 2023 23:47:49 +0200 Subject: [PATCH] having group = 'www-data' is a legit use case in php conf --- package_linter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package_linter.py b/package_linter.py index 9b83ec8..8f02424 100755 --- a/package_linter.py +++ b/package_linter.py @@ -1222,7 +1222,7 @@ class Configurations(TestSuite): else: Level = Warning - matches = re.findall(r"^ *(User|Group)=(\S+)", content, flags=re.MULTILINE) + matches = re.findall(r"^ *(User)=(\S+)", content, flags=re.MULTILINE) if not any(match[0] == "User" for match in matches): yield Level( "You should specify a 'User=' directive in the systemd config !"