Fixed exec working directory in custom::file.
This commit is contained in:
parent
0478d65d21
commit
0017afd4fe
1 changed files with 1 additions and 0 deletions
|
@ -68,6 +68,7 @@ define custom::file($ensure, $group="NONE", $mode="NONE", $owner="NONE", $seltyp
|
||||||
default: {
|
default: {
|
||||||
exec { "fetch-file-${source}":
|
exec { "fetch-file-${source}":
|
||||||
path => "/bin:/usr/bin:/usr/local/bin:/sbin:/usr/sbin:/usr/local/sbin",
|
path => "/bin:/usr/bin:/usr/local/bin:/sbin:/usr/sbin:/usr/local/sbin",
|
||||||
|
cwd => regsubst($name, '(.*)/[^/]+$', '\1'),
|
||||||
command => $fetch_cmd,
|
command => $fetch_cmd,
|
||||||
unless => $diff_cmd,
|
unless => $diff_cmd,
|
||||||
before => File["${name}"],
|
before => File["${name}"],
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue