summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorFranz Pletz <fpletz@fnordicwalking.de>2017-03-14 23:07:57 +0100
committerGitHub <noreply@github.com>2017-03-14 23:07:57 +0100
commit91744f31b0b2718b5ed5c6ceb5e5608633209c10 (patch)
treed3705a05e3c7c8a1818b70b8541f3e81a2aaeca6 /nixos
parentdb937b9d60c281ab34f329867f593cbacaa6866a (diff)
parent9ea35eae7a5aee9159735ca662b65c8552aec8dc (diff)
downloadnixlib-91744f31b0b2718b5ed5c6ceb5e5608633209c10.tar
nixlib-91744f31b0b2718b5ed5c6ceb5e5608633209c10.tar.gz
nixlib-91744f31b0b2718b5ed5c6ceb5e5608633209c10.tar.bz2
nixlib-91744f31b0b2718b5ed5c6ceb5e5608633209c10.tar.lz
nixlib-91744f31b0b2718b5ed5c6ceb5e5608633209c10.tar.xz
nixlib-91744f31b0b2718b5ed5c6ceb5e5608633209c10.tar.zst
nixlib-91744f31b0b2718b5ed5c6ceb5e5608633209c10.zip
Merge pull request #23623 from mayflower/fix/users-create-home
nixos/users-groups: chown home on createHome
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/config/update-users-groups.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/config/update-users-groups.pl b/nixos/modules/config/update-users-groups.pl
index cbbe216e5a17..4ca8a83554ad 100644
--- a/nixos/modules/config/update-users-groups.pl
+++ b/nixos/modules/config/update-users-groups.pl
@@ -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};
     }