aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMicah Anderson <micah@riseup.net>2009-04-08 15:37:50 -0400
committerMicah Anderson <micah@riseup.net>2009-04-08 15:37:50 -0400
commit991fb6fdcf0a5727586ef8b19e8e08ea96369c20 (patch)
treefa7240760c74ce23957f2ffaf08b2b67e21bf402
parentbe656a6ac84de6a0df70b43cf8ac250f5720d4cc (diff)
downloadpuppet-apt-991fb6fdcf0a5727586ef8b19e8e08ea96369c20.tar.gz
puppet-apt-991fb6fdcf0a5727586ef8b19e8e08ea96369c20.tar.bz2
fix the exec call to be more reasonable shell and to not use a for loop variable
which is pure madness inside of puppet
-rw-r--r--manifests/init.pp2
1 files changed, 1 insertions, 1 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
index dc868d7..c9dbe0a 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -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];