Merge pull request #112 from YunoHost/alexAubin-patch-1

having group = 'www-data' is a legit use case in php conf
This commit is contained in:
Alexandre Aubin 2023-05-04 23:47:59 +02:00 committed by GitHub
commit 5c6da773a2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 !"