Skip to content

Commit

Permalink
Prevent empty files from being created when a wget download fails (Fixes
Browse files Browse the repository at this point in the history
 #25)
pcfens committed Jan 29, 2017
1 parent 3bdc414 commit ed7a0f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion manifests/ca.pp
Original file line number Diff line number Diff line change
@@ -100,7 +100,7 @@
}
exec { "get_${resource_name}":
command =>
"wget ${verify_https} -O '${ca_cert}' '${source}' 2> /dev/null",
"wget ${verify_https} -O '${ca_cert}' '${source}' 2> /dev/null || rm -f '${ca_cert}'",
path => ['/usr/bin', '/bin'],
creates => $ca_cert,
notify => Exec['ca_cert_update'],

0 comments on commit ed7a0f5

Please sign in to comment.