fix the exec call to be more reasonable shell and to not use a for loop variable

which is pure madness inside of puppet
This commit is contained in:
Micah Anderson 2009-04-08 15:37:50 -04:00
parent be656a6ac8
commit 991fb6fdcf

View file

@ -142,7 +142,7 @@ class apt {
recurse => true,
mode => 0755, owner => root, group => root,
}
exec { "for key in `ls ${apt_base_dir/keys.d/` ; do /usr/bin/apt-key add ${apt_base_dir}/$key && apt-get update":
exec { "find ${apt_base_dir}/keys.d -type f -exec apt-key add '{}' \; && apt-get update":
alias => "custom_keys",
refreshonly => true,
before => File[apt_config];