Fix trying to add users to non-existent groups

This commit is contained in:
Kirill Elagin 2014-06-11 13:36:15 +04:00
parent 1208dd4df0
commit f81434bdfe
3 changed files with 3 additions and 3 deletions

View File

@ -68,7 +68,7 @@ in
users.extraUsers = optionalAttrs (cfg.user == "openldap") (singleton
{ name = "openldap";
group = "openldap";
group = cfg.group;
uid = config.ids.uids.openldap;
});

View File

@ -596,7 +596,7 @@ in
users.extraUsers = optionalAttrs (mainCfg.user == "wwwrun") (singleton
{ name = "wwwrun";
group = "wwwrun";
group = mainCfg.group;
description = "Apache httpd user";
uid = config.ids.uids.wwwrun;
});

View File

@ -105,7 +105,7 @@ in
users.extraUsers = optionalAttrs (cfg.user == "nginx") (singleton
{ name = "nginx";
group = "nginx";
group = cfg.group;
uid = config.ids.uids.nginx;
});