apply Tim's patch
This commit is contained in:
parent
38dbd72bf6
commit
1da86f28b2
|
@ -117,7 +117,7 @@ if ($< == 0 ) { # we are root
|
||||||
}
|
}
|
||||||
if (! -e $user[7]) {
|
if (! -e $user[7]) {
|
||||||
system 'mkdir', '-m', '0755', $user[7]; # Create homedir itself
|
system 'mkdir', '-m', '0755', $user[7]; # Create homedir itself
|
||||||
system ("(cd /etc/skel && tar cf - .) | (cd $user[7] && tar xf -)"); # Copy /etc/sekl into homedir
|
system ("(cd /etc/skel && tar cf - .) | (cd $user[7] && tar xmf -)"); # Copy /etc/sekl into homedir
|
||||||
system 'chown', '-hR', "$user[2]:$user[3]" , $user[7]; # Change owner to new user
|
system 'chown', '-hR', "$user[2]:$user[3]" , $user[7]; # Change owner to new user
|
||||||
if (-e '/usr/sbin/useradd.local') {
|
if (-e '/usr/sbin/useradd.local') {
|
||||||
system '/usr/sbin/useradd.local', $user[0]; # run useradd-script
|
system '/usr/sbin/useradd.local', $user[0]; # run useradd-script
|
||||||
|
|
Loading…
Reference in New Issue