forked from forkanization/Proxmox-arm64
@@ -37,7 +37,7 @@ if [[ "${prompt,,}" =~ ^(y|yes)$ ]]; then
|
|||||||
msg_info "Installing Golang"
|
msg_info "Installing Golang"
|
||||||
set +o pipefail
|
set +o pipefail
|
||||||
temp_file=$(mktemp)
|
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"
|
wget -q https://golang.org/dl/"$golang_tarball" -O "$temp_file"
|
||||||
tar -C /usr/local -xzf "$temp_file"
|
tar -C /usr/local -xzf "$temp_file"
|
||||||
ln -sf /usr/local/go/bin/go /usr/local/bin/go
|
ln -sf /usr/local/go/bin/go /usr/local/bin/go
|
||||||
@@ -48,8 +48,8 @@ if [[ "${prompt,,}" =~ ^(y|yes)$ ]]; then
|
|||||||
msg_info "Setup xCaddy"
|
msg_info "Setup xCaddy"
|
||||||
cd /opt
|
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) }')
|
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
|
wget -q https://github.com/caddyserver/xcaddy/releases/download/${RELEASE}/xcaddy_${RELEASE:1}_linux_arm64.deb
|
||||||
$STD dpkg -i xcaddy_${RELEASE:1}_linux_amd64.deb
|
$STD dpkg -i xcaddy_${RELEASE:1}_linux_arm64.deb
|
||||||
rm -rf /opt/xcaddy*
|
rm -rf /opt/xcaddy*
|
||||||
$STD xcaddy build
|
$STD xcaddy build
|
||||||
msg_ok "Setup xCaddy"
|
msg_ok "Setup xCaddy"
|
||||||
|
|||||||
Reference in New Issue
Block a user