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 e314577
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions manifests/fetch.pp
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit e314577

Please sign in to comment.