diff --git a/user/manifests/init.pp b/user/manifests/init.pp index a26ae60..156b7c0 100644 --- a/user/manifests/init.pp +++ b/user/manifests/init.pp @@ -254,7 +254,7 @@ define user::newuser($uid, $gid, $comment, $home, $shell, $groups=undef, $requir } 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", path => "/sbin:/usr/sbin:/bin:/usr/bin", creates => "${home}",