Skip to content

Commit 4811562

Browse files
authored
Caddy: add git for xcaddy (#3657)
1 parent 23c0114 commit 4811562

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

install/caddy-install.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ if [[ "${prompt,,}" =~ ^(y|yes)$ ]]; then
4242
msg_ok "Installed Golang"
4343

4444
msg_info "Setup xCaddy"
45+
$STD apt-get install -y git
4546
cd /opt
4647
RELEASE=$(curl -fsSL https://api.github.com/repos/caddyserver/xcaddy/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }')
4748
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")

0 commit comments

Comments
 (0)