aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorintrigeri <intrigeri@boum.org>2015-08-31 09:55:17 +0000
committerintrigeri <intrigeri@boum.org>2015-08-31 09:55:17 +0000
commit8745de17d64a6eac0eb9f15c19f990fd80383c1f (patch)
treef7be9718933937b1e70aaf7f9881b2c7b3ae86d5
parentdc1a19e6cb7f05815f95f90033d212758f59744b (diff)
downloadpuppet-apt-8745de17d64a6eac0eb9f15c19f990fd80383c1f.tar.gz
puppet-apt-8745de17d64a6eac0eb9f15c19f990fd80383c1f.tar.bz2
Quote apt-key variable parameter.
This is not perfect protection against special chars that the shell may interpret, but should help at least in case $name contains spaces.
-rw-r--r--manifests/key/plain.pp2
1 files changed, 1 insertions, 1 deletions
diff --git a/manifests/key/plain.pp b/manifests/key/plain.pp
index a24a51b..e4a2f89 100644
--- a/manifests/key/plain.pp
+++ b/manifests/key/plain.pp
@@ -5,7 +5,7 @@ define apt::key::plain ($source) {
"${apt::apt_base_dir}/keys":
ensure => directory;
}
- exec { "apt-key add ${apt::apt_base_dir}/keys/${name}":
+ exec { "apt-key add '${apt::apt_base_dir}/keys/${name}'":
subscribe => File["${apt::apt_base_dir}/keys/${name}"],
refreshonly => true,
notify => Exec['refresh_apt'],