diff --git a/manifests/fetch.pp b/manifests/fetch.pp index e0ff9ae..ffa3357 100644 --- a/manifests/fetch.pp +++ b/manifests/fetch.pp @@ -185,6 +185,20 @@ schedule => $schedule, } + 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', + refreshonly => true, + } + } + if $cache_dir != undef { $cache = $cache_file ? { undef => inline_template('<%= require \'uri\'; File.basename(URI::parse(@source).path) %>'),