Skip to content

Commit bb5ef38

Browse files
authored
Update caddy-install.sh
#118
1 parent e0c8490 commit bb5ef38

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

install/caddy-install.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ if [[ "${prompt,,}" =~ ^(y|yes)$ ]]; then
3737
msg_info "Installing Golang"
3838
set +o pipefail
3939
temp_file=$(mktemp)
40-
golang_tarball=$(curl -s https://go.dev/dl/ | grep -oP 'go[\d\.]+\.linux-amd64\.tar\.gz' | head -n 1)
40+
golang_tarball=$(curl -s https://go.dev/dl/ | grep -oP 'go[\d\.]+\.linux-arm64\.tar\.gz' | head -n 1)
4141
wget -q https://golang.org/dl/"$golang_tarball" -O "$temp_file"
4242
tar -C /usr/local -xzf "$temp_file"
4343
ln -sf /usr/local/go/bin/go /usr/local/bin/go
@@ -48,8 +48,8 @@ if [[ "${prompt,,}" =~ ^(y|yes)$ ]]; then
4848
msg_info "Setup xCaddy"
4949
cd /opt
5050
RELEASE=$(curl -s https://api.github.com/repos/caddyserver/xcaddy/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }')
51-
wget -q https://github.com/caddyserver/xcaddy/releases/download/${RELEASE}/xcaddy_${RELEASE:1}_linux_amd64.deb
52-
$STD dpkg -i xcaddy_${RELEASE:1}_linux_amd64.deb
51+
wget -q https://github.com/caddyserver/xcaddy/releases/download/${RELEASE}/xcaddy_${RELEASE:1}_linux_arm64.deb
52+
$STD dpkg -i xcaddy_${RELEASE:1}_linux_arm64.deb
5353
rm -rf /opt/xcaddy*
5454
$STD xcaddy build
5555
msg_ok "Setup xCaddy"

0 commit comments

Comments
 (0)