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.
This commit is contained in:
intrigeri 2015-08-31 09:55:17 +00:00
parent dc1a19e6cb
commit 8745de17d6

View file

@ -5,7 +5,7 @@ define apt::key::plain ($source) {
"${apt::apt_base_dir}/keys": "${apt::apt_base_dir}/keys":
ensure => directory; 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}"], subscribe => File["${apt::apt_base_dir}/keys/${name}"],
refreshonly => true, refreshonly => true,
notify => Exec['refresh_apt'], notify => Exec['refresh_apt'],