Fix configuring httpd with custom user/group.

This commit is contained in:
Rob Vermaas 2014-06-11 10:18:23 +02:00
parent 75ec418ec8
commit 08f9da2e8e

View File

@ -594,14 +594,14 @@ in
message = "SSL is enabled for HTTPD, but sslServerCert and/or sslServerKey haven't been specified."; }
];
users.extraUsers = optionalAttrs (mainCfg.user == "wwwrun") singleton
users.extraUsers = optional (mainCfg.user == "wwwrun")
{ name = "wwwrun";
group = "wwwrun";
description = "Apache httpd user";
uid = config.ids.uids.wwwrun;
};
users.extraGroups = optionalAttrs (mainCfg.group == "wwwrun") singleton
users.extraGroups = optional (mainCfg.group == "wwwrun")
{ name = "wwwrun";
gid = config.ids.gids.wwwrun;
};