parent
e206d5ab63
commit
9ea35eae7a
|
@ -177,7 +177,7 @@ foreach my $u (@{$spec->{users}}) {
|
||||||
}
|
}
|
||||||
|
|
||||||
# Create a home directory.
|
# Create a home directory.
|
||||||
if ($u->{createHome} && ! -e $u->{home}) {
|
if ($u->{createHome}) {
|
||||||
make_path($u->{home}, { mode => 0700 }) if ! -e $u->{home};
|
make_path($u->{home}, { mode => 0700 }) if ! -e $u->{home};
|
||||||
chown $u->{uid}, $u->{gid}, $u->{home};
|
chown $u->{uid}, $u->{gid}, $u->{home};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue