diff options
| author | Clawd <ai@clawd.bot> | 2026-02-15 19:07:39 -0800 |
|---|---|---|
| committer | Clawd <ai@clawd.bot> | 2026-02-15 19:07:39 -0800 |
| commit | 016d41c60b56c6f07a1963811c295f917bf278dd (patch) | |
| tree | 96be91a1644a8134145cfaa1129fd15461d874d6 /cmd/ship/host_v2.go | |
| parent | 626055c95ded6ef22c913b47266125884a84fa1c (diff) | |
fix: Caddy install permission issue with gpg dearmor
Diffstat (limited to 'cmd/ship/host_v2.go')
| -rw-r--r-- | cmd/ship/host_v2.go | 7 |
1 files 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/* | |||
| 138 | func installCaddyV2(client *ssh.Client) error { | 138 | func installCaddyV2(client *ssh.Client) error { |
| 139 | commands := []string{ | 139 | commands := []string{ |
| 140 | "apt-get update", | 140 | "apt-get update", |
| 141 | "apt-get install -y debian-keyring debian-archive-keyring apt-transport-https curl", | 141 | "apt-get install -y debian-keyring debian-archive-keyring apt-transport-https curl gnupg", |
| 142 | "curl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/gpg.key' | gpg --dearmor -o /usr/share/keyrings/caddy-stable-archive-keyring.gpg", | 142 | "curl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/gpg.key' -o /tmp/caddy.gpg", |
| 143 | "curl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/debian.deb.txt' | tee /etc/apt/sources.list.d/caddy-stable.list", | 143 | "gpg --dearmor -o /usr/share/keyrings/caddy-stable-archive-keyring.gpg < /tmp/caddy.gpg", |
| 144 | "curl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/debian.deb.txt' -o /etc/apt/sources.list.d/caddy-stable.list", | ||
| 144 | "apt-get update", | 145 | "apt-get update", |
| 145 | "apt-get install -y caddy", | 146 | "apt-get install -y caddy", |
| 146 | } | 147 | } |
