From 62e78fe028e7aef1d3887f086d37cde8b91adfa1 Mon Sep 17 00:00:00 2001 From: Matt Spurrier Date: Thu, 25 Jul 2024 05:05:54 +0800 Subject: [PATCH] Add keyring permissions Fixes install instructions to correct file permissions on the Caddy GPG key - required; otherwise you'll get the following error: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY ... --- src/docs/markdown/install.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/docs/markdown/install.md b/src/docs/markdown/install.md index b244cd2..31050e9 100644 --- a/src/docs/markdown/install.md +++ b/src/docs/markdown/install.md @@ -63,6 +63,7 @@ After installing, please read the [service usage instructions](/docs/running#usi
sudo apt install -y debian-keyring debian-archive-keyring apt-transport-https curl
 curl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/gpg.key' | sudo gpg --dearmor -o /usr/share/keyrings/caddy-stable-archive-keyring.gpg
 curl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/debian.deb.txt' | sudo tee /etc/apt/sources.list.d/caddy-stable.list
+chmod 664 /usr/share/keyrings/caddy-stable-archive-keyring.gpg
 sudo apt update
 sudo apt install caddy
@@ -71,6 +72,7 @@ After installing, please read the [service usage instructions](/docs/running#usi
sudo apt install -y debian-keyring debian-archive-keyring apt-transport-https curl
 curl -1sLf 'https://dl.cloudsmith.io/public/caddy/testing/gpg.key' | sudo gpg --dearmor -o /usr/share/keyrings/caddy-testing-archive-keyring.gpg
 curl -1sLf 'https://dl.cloudsmith.io/public/caddy/testing/debian.deb.txt' | sudo tee /etc/apt/sources.list.d/caddy-testing.list
+chmod 664 /usr/share/keyrings/caddy-stable-archive-keyring.gpg
 sudo apt update
 sudo apt install caddy