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