From a5196acac669511fa00b357d2b635a31b0d5bd6d Mon Sep 17 00:00:00 2001 From: Tobias Gruetzmacher Date: Tue, 29 Jun 2021 21:44:47 +0200 Subject: [PATCH] Remove usage of apt-key --- src/docs/markdown/install.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/docs/markdown/install.md b/src/docs/markdown/install.md index e42e471..f4fa8c3 100644 --- a/src/docs/markdown/install.md +++ b/src/docs/markdown/install.md @@ -46,7 +46,7 @@ This package also comes with a `caddy-api` systemd service using our official [` Stable releases:
sudo apt install -y debian-keyring debian-archive-keyring apt-transport-https
-curl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/gpg.key' | sudo apt-key add -
+curl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/gpg.key' | sudo tee /etc/apt/trusted.gpg.d/caddy-stable.asc
 curl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/debian.deb.txt' | sudo tee /etc/apt/sources.list.d/caddy-stable.list
 sudo apt update
 sudo apt install caddy
@@ -54,7 +54,7 @@ Stable releases: Testing releases (includes betas and release candidates):
sudo apt install -y debian-keyring debian-archive-keyring apt-transport-https
-curl -1sLf 'https://dl.cloudsmith.io/public/caddy/testing/gpg.key' | sudo apt-key add -
+curl -1sLf 'https://dl.cloudsmith.io/public/caddy/testing/gpg.key' | sudo tee /etc/apt/trusted.gpg.d/caddy-testing.asc
 curl -1sLf 'https://dl.cloudsmith.io/public/caddy/testing/debian.deb.txt' | sudo tee /etc/apt/sources.list.d/caddy-testing.list
 sudo apt update
 sudo apt install caddy