Skip to content

Commit

Permalink
Fix issue voxpupuli#83, mode not applied to new downloads
Browse files Browse the repository at this point in the history
  • Loading branch information
braddeicide committed Apr 29, 2017
1 parent 14b00e6 commit 91c3d88
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions manifests/fetch.pp
Original file line number Diff line number Diff line change
Expand Up @@ -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) %>'),
Expand Down

0 comments on commit 91c3d88

Please sign in to comment.