Only create the Apache user/group if it's "wwwrun"
This commit is contained in:
parent
1b249eaf05
commit
29f721ba54
|
@ -557,14 +557,14 @@ in
|
|||
|
||||
config = mkIf config.services.httpd.enable {
|
||||
|
||||
users.extraUsers = singleton
|
||||
{ name = mainCfg.user;
|
||||
group = mainCfg.group;
|
||||
users.extraUsers = optionalAttrs (mainCfg.user == "wwwrun") singleton
|
||||
{ name = "wwwrun";
|
||||
group = "wwwrun";
|
||||
description = "Apache httpd user";
|
||||
};
|
||||
|
||||
users.extraGroups = singleton
|
||||
{ name = mainCfg.group;
|
||||
users.extraGroups = optionalAttrs (mainCfg.group == "wwwrun") singleton
|
||||
{ name = "wwwrun";
|
||||
};
|
||||
|
||||
environment.systemPackages = [httpd] ++ concatMap (svc: svc.extraPath) allSubservices;
|
||||
|
|
Loading…
Reference in New Issue