Skip to content

Commit 6575dc0

Browse files
maximiliankolbevgeni
authored andcommitted
Fixes #37034 - Replace apt-key on Debian/Ubuntu
1 parent bf39cd0 commit 6575dc0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/views/unattended/provisioning_templates/registration/global_registration.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ elif [ -f /etc/debian_version ]; then
8787
<%= save_to_file('/etc/apt/sources.list.d/foreman_registration.list', @repo) %>
8888
<% if @repo_gpg_key_url.present? -%>
8989
apt-get -y install ca-certificates gpg
90-
curl --silent --show-error <%= shell_escape @repo_gpg_key_url %> | apt-key add -
90+
curl --silent --show-error --output /etc/apt/trusted.gpg.d/client.asc <%= shell_escape @repo_gpg_key_url %>
9191
<% end -%>
9292
apt-get update
9393

0 commit comments

Comments
 (0)