mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-15 05:59:17 +03:00
Fix configuring httpd with custom user/group.
This commit is contained in:
parent
75ec418ec8
commit
08f9da2e8e
1 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue