Fixed user creation on OpenBSD with puppet 2.7

This commit is contained in:
Ossi Salmi 2012-03-01 11:48:21 +02:00
parent f4de673d7d
commit b31e286062

View file

@ -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}",