From 991fb6fdcf0a5727586ef8b19e8e08ea96369c20 Mon Sep 17 00:00:00 2001 From: Micah Anderson Date: Wed, 8 Apr 2009 15:37:50 -0400 Subject: [PATCH] fix the exec call to be more reasonable shell and to not use a for loop variable which is pure madness inside of puppet --- manifests/init.pp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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];