Only create the Apache user/group if it's "wwwrun"

This commit is contained in:
Eelco Dolstra 2012-08-03 09:34:27 -04:00
parent 1b249eaf05
commit 29f721ba54
1 changed files with 5 additions and 5 deletions

View File

@ -557,14 +557,14 @@ in
config = mkIf config.services.httpd.enable { config = mkIf config.services.httpd.enable {
users.extraUsers = singleton users.extraUsers = optionalAttrs (mainCfg.user == "wwwrun") singleton
{ name = mainCfg.user; { name = "wwwrun";
group = mainCfg.group; group = "wwwrun";
description = "Apache httpd user"; description = "Apache httpd user";
}; };
users.extraGroups = singleton users.extraGroups = optionalAttrs (mainCfg.group == "wwwrun") singleton
{ name = mainCfg.group; { name = "wwwrun";
}; };
environment.systemPackages = [httpd] ++ concatMap (svc: svc.extraPath) allSubservices; environment.systemPackages = [httpd] ++ concatMap (svc: svc.extraPath) allSubservices;