Fixed user creation on OpenBSD with puppet 2.7
This commit is contained in:
parent
f4de673d7d
commit
b31e286062
1 changed files with 1 additions and 1 deletions
|
@ -254,7 +254,7 @@ define user::newuser($uid, $gid, $comment, $home, $shell, $groups=undef, $requir
|
||||||
}
|
}
|
||||||
|
|
||||||
exec { "user-home-${name}":
|
exec { "user-home-${name}":
|
||||||
command => "umask 077; mkdir -p ${home} && tar cf - . | tar xf - -C ${home} && chown -R ${uid}:${gid} ${home}",
|
command => "/bin/sh -c 'umask 077; mkdir -p ${home} && tar cf - . | tar xf - -C ${home} && chown -R ${uid}:${gid} ${home}'",
|
||||||
cwd => "/etc/skel",
|
cwd => "/etc/skel",
|
||||||
path => "/sbin:/usr/sbin:/bin:/usr/bin",
|
path => "/sbin:/usr/sbin:/bin:/usr/bin",
|
||||||
creates => "${home}",
|
creates => "${home}",
|
||||||
|
|
Loading…
Add table
Reference in a new issue