diff --git a/manifests/fetch.pp b/manifests/fetch.pp index e0ff9ae..ffa92df 100644 --- a/manifests/fetch.pp +++ b/manifests/fetch.pp @@ -183,6 +183,22 @@ path => $exec_path, require => Package['wget'], schedule => $schedule, + notify => Exec["wget-${name}-mode"], + } + + if $mode != undef { + exec { "wget-${name}-mode": + command => "chmod ${mode} ${_destination}", + user => $exec_user, + path => $exec_path, + refreshonly => true, + } + } else { + exec { "wget-${name}-mode": + command => 'true', + path => $exec_path, + refreshonly => true, + } } if $cache_dir != undef {