having group = 'www-data' is a legit use case in php conf

This commit is contained in:
Alexandre Aubin 2023-05-04 23:47:49 +02:00 committed by GitHub
parent e5b29238b2
commit 8fe93728bf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1222,7 +1222,7 @@ class Configurations(TestSuite):
else: else:
Level = Warning 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): if not any(match[0] == "User" for match in matches):
yield Level( yield Level(
"You should specify a 'User=' directive in the systemd config !" "You should specify a 'User=' directive in the systemd config !"