From 80b3169cd0d6f14236be53bfa3f9f404854821c7 Mon Sep 17 00:00:00 2001 From: Mattchis Date: Tue, 12 Dec 2023 12:36:11 -0700 Subject: [PATCH] - Updated go to 1.21.5 - Added to remove /usr/local/go/ before install go. In some situations there was a compiling issue with go with a previous version installed. --- rmmagent-linux.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/rmmagent-linux.sh b/rmmagent-linux.sh index 6aba189..e1b8afc 100644 --- a/rmmagent-linux.sh +++ b/rmmagent-linux.sh @@ -127,10 +127,10 @@ rmm_agent_type=$8 mesh_fqdn=$2 mesh_id=$3 -go_url_amd64="https://go.dev/dl/go1.18.3.linux-amd64.tar.gz" -go_url_x86="https://go.dev/dl/go1.18.3.linux-386.tar.gz" -go_url_arm64="https://go.dev/dl/go1.18.3.linux-arm64.tar.gz" -go_url_armv6="https://go.dev/dl/go1.18.3.linux-armv6l.tar.gz" +go_url_amd64="https://go.dev/dl/go1.21.5.linux-amd64.tar.gz" +go_url_x86="https://go.dev/dl/go1.21.5.linux-386.tar.gz" +go_url_arm64="https://go.dev/dl/go1.21.5.linux-arm64.tar.gz" +go_url_armv6="https://go.dev/dl/go1.21.5.linux-armv6l.tar.gz" function go_install() { if ! command -v go &> /dev/null; then @@ -150,6 +150,7 @@ function go_install() { ;; esac + rm -rvf /usr/local/go/ tar -xvzf /tmp/golang.tar.gz -C /usr/local/ rm /tmp/golang.tar.gz export GOPATH=/usr/local/go