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:
parent
dc1a19e6cb
commit
8745de17d6
1 changed files with 1 additions and 1 deletions
|
@ -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'],
|
||||
|
|
Loading…
Reference in a new issue