From 481156275bba14dd09121e6ce63877b93f4c9bb5 Mon Sep 17 00:00:00 2001 From: CanbiZ <47820557+MickLesk@users.noreply.github.com> Date: Fri, 4 Apr 2025 17:39:37 +0200 Subject: [PATCH] Caddy: add git for xcaddy (#3657) --- install/caddy-install.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/install/caddy-install.sh b/install/caddy-install.sh index 5f488797f..1447a0a96 100644 --- a/install/caddy-install.sh +++ b/install/caddy-install.sh @@ -42,6 +42,7 @@ if [[ "${prompt,,}" =~ ^(y|yes)$ ]]; then msg_ok "Installed Golang" msg_info "Setup xCaddy" + $STD apt-get install -y git cd /opt RELEASE=$(curl -fsSL https://api.github.com/repos/caddyserver/xcaddy/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }') curl -fsSL "https://github.com/caddyserver/xcaddy/releases/download/${RELEASE}/xcaddy_${RELEASE:1}_linux_amd64.deb" -o $(basename "https://github.com/caddyserver/xcaddy/releases/download/${RELEASE}/xcaddy_${RELEASE:1}_linux_amd64.deb")