]> gitweb.fluxo.info Git - puppet-apt.git/commitdiff
fix the exec call to be more reasonable shell and to not use a for loop variable
authorMicah Anderson <micah@riseup.net>
Wed, 8 Apr 2009 19:37:50 +0000 (15:37 -0400)
committerMicah Anderson <micah@riseup.net>
Wed, 8 Apr 2009 19:37:50 +0000 (15:37 -0400)
which is pure madness inside of puppet

manifests/init.pp

index dc868d7b90a1e059428743e57b3b18b0b7ab4818..c9dbe0a16e045883f210045af59409a1c1058fb8 100644 (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];