From bb5ef3800cea7352c682527f89360ac76e3ad473 Mon Sep 17 00:00:00 2001 From: Sam Heinz <54530346+asylumexp@users.noreply.github.com> Date: Fri, 7 Mar 2025 16:00:35 +1000 Subject: [PATCH] Update caddy-install.sh #118 --- install/caddy-install.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/install/caddy-install.sh b/install/caddy-install.sh index a833b9d12..89c2c8d53 100644 --- a/install/caddy-install.sh +++ b/install/caddy-install.sh @@ -37,7 +37,7 @@ if [[ "${prompt,,}" =~ ^(y|yes)$ ]]; then msg_info "Installing Golang" set +o pipefail temp_file=$(mktemp) - golang_tarball=$(curl -s https://go.dev/dl/ | grep -oP 'go[\d\.]+\.linux-amd64\.tar\.gz' | head -n 1) + golang_tarball=$(curl -s https://go.dev/dl/ | grep -oP 'go[\d\.]+\.linux-arm64\.tar\.gz' | head -n 1) wget -q https://golang.org/dl/"$golang_tarball" -O "$temp_file" tar -C /usr/local -xzf "$temp_file" ln -sf /usr/local/go/bin/go /usr/local/bin/go @@ -48,8 +48,8 @@ if [[ "${prompt,,}" =~ ^(y|yes)$ ]]; then msg_info "Setup xCaddy" cd /opt RELEASE=$(curl -s https://api.github.com/repos/caddyserver/xcaddy/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }') - wget -q https://github.com/caddyserver/xcaddy/releases/download/${RELEASE}/xcaddy_${RELEASE:1}_linux_amd64.deb - $STD dpkg -i xcaddy_${RELEASE:1}_linux_amd64.deb + wget -q https://github.com/caddyserver/xcaddy/releases/download/${RELEASE}/xcaddy_${RELEASE:1}_linux_arm64.deb + $STD dpkg -i xcaddy_${RELEASE:1}_linux_arm64.deb rm -rf /opt/xcaddy* $STD xcaddy build msg_ok "Setup xCaddy"