From a765af6e48ab66080bbdc147a63557b10975331c Mon Sep 17 00:00:00 2001 From: Sam Heinz <54530346+asylumexp@users.noreply.github.com> Date: Sun, 14 Apr 2024 19:15:26 +1000 Subject: [PATCH] [Zoraxy] Fix golang download --- install/zoraxy-install.sh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/install/zoraxy-install.sh b/install/zoraxy-install.sh index 48deecc52..c3aca8af9 100644 --- a/install/zoraxy-install.sh +++ b/install/zoraxy-install.sh @@ -23,9 +23,8 @@ msg_ok "Installed Dependencies" msg_info "Installing Golang" set +o pipefail -RELEASE=$(curl -s https://go.dev/dl/ | grep -o "go.*\linux-arm64.tar.gz" | head -n 1) -wget -q https://golang.org/dl/$RELEASE -$STD tar -xzf $RELEASE -C /usr/local +wget -q https://golang.org/dl/go1.22.2.linux-arm64.tar.gz +tar -xzf go1.22.2.linux-arm64.tar.gz -C /usr/local $STD ln -s /usr/local/go/bin/go /usr/local/bin/go set -o pipefail msg_ok "Installed Golang" @@ -58,7 +57,7 @@ motd_ssh customize msg_info "Cleaning up" -rm -rf $RELEASE +rm -rf go1.22.2.linux-arm64.tar.gz $STD apt-get autoremove $STD apt-get autoclean msg_ok "Cleaned"