mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-26 12:53:59 +03:00
Merge pull request #23623 from mayflower/fix/users-create-home
nixos/users-groups: chown home on createHome
This commit is contained in:
commit
91744f31b0
@ -177,7 +177,7 @@ foreach my $u (@{$spec->{users}}) {
|
||||
}
|
||||
|
||||
# Create a home directory.
|
||||
if ($u->{createHome} && ! -e $u->{home}) {
|
||||
if ($u->{createHome}) {
|
||||
make_path($u->{home}, { mode => 0700 }) if ! -e $u->{home};
|
||||
chown $u->{uid}, $u->{gid}, $u->{home};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user