From 016d41c60b56c6f07a1963811c295f917bf278dd Mon Sep 17 00:00:00 2001 From: Clawd Date: Sun, 15 Feb 2026 19:07:39 -0800 Subject: fix: Caddy install permission issue with gpg dearmor --- cmd/ship/host_v2.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/cmd/ship/host_v2.go b/cmd/ship/host_v2.go index dec8b59..6e1850c 100644 --- a/cmd/ship/host_v2.go +++ b/cmd/ship/host_v2.go @@ -138,9 +138,10 @@ import /etc/caddy/sites-enabled/* func installCaddyV2(client *ssh.Client) error { commands := []string{ "apt-get update", - "apt-get install -y debian-keyring debian-archive-keyring apt-transport-https curl", - "curl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/gpg.key' | gpg --dearmor -o /usr/share/keyrings/caddy-stable-archive-keyring.gpg", - "curl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/debian.deb.txt' | tee /etc/apt/sources.list.d/caddy-stable.list", + "apt-get install -y debian-keyring debian-archive-keyring apt-transport-https curl gnupg", + "curl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/gpg.key' -o /tmp/caddy.gpg", + "gpg --dearmor -o /usr/share/keyrings/caddy-stable-archive-keyring.gpg < /tmp/caddy.gpg", + "curl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/debian.deb.txt' -o /etc/apt/sources.list.d/caddy-stable.list", "apt-get update", "apt-get install -y caddy", } -- cgit v1.2.3