Fixed exec working directory in custom::file.

This commit is contained in:
Ossi Salmi 2010-10-26 11:47:14 +03:00 committed by Timo Mkinen
parent 0478d65d21
commit 0017afd4fe

View file

@ -68,6 +68,7 @@ define custom::file($ensure, $group="NONE", $mode="NONE", $owner="NONE", $seltyp
default: {
exec { "fetch-file-${source}":
path => "/bin:/usr/bin:/usr/local/bin:/sbin:/usr/sbin:/usr/local/sbin",
cwd => regsubst($name, '(.*)/[^/]+$', '\1'),
command => $fetch_cmd,
unless => $diff_cmd,
before => File["${name}"],