Fix configuring httpd with custom user/group.
This commit is contained in:
parent
75ec418ec8
commit
08f9da2e8e
|
@ -594,14 +594,14 @@ in
|
||||||
message = "SSL is enabled for HTTPD, but sslServerCert and/or sslServerKey haven't been specified."; }
|
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";
|
{ name = "wwwrun";
|
||||||
group = "wwwrun";
|
group = "wwwrun";
|
||||||
description = "Apache httpd user";
|
description = "Apache httpd user";
|
||||||
uid = config.ids.uids.wwwrun;
|
uid = config.ids.uids.wwwrun;
|
||||||
};
|
};
|
||||||
|
|
||||||
users.extraGroups = optionalAttrs (mainCfg.group == "wwwrun") singleton
|
users.extraGroups = optional (mainCfg.group == "wwwrun")
|
||||||
{ name = "wwwrun";
|
{ name = "wwwrun";
|
||||||
gid = config.ids.gids.wwwrun;
|
gid = config.ids.gids.wwwrun;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue