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 {
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;