- 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.
This commit is contained in:
Mattchis 2023-12-12 12:36:11 -07:00
parent 311b2f74a0
commit 80b3169cd0

View File

@ -127,10 +127,10 @@ rmm_agent_type=$8
mesh_fqdn=$2 mesh_fqdn=$2
mesh_id=$3 mesh_id=$3
go_url_amd64="https://go.dev/dl/go1.18.3.linux-amd64.tar.gz" go_url_amd64="https://go.dev/dl/go1.21.5.linux-amd64.tar.gz"
go_url_x86="https://go.dev/dl/go1.18.3.linux-386.tar.gz" go_url_x86="https://go.dev/dl/go1.21.5.linux-386.tar.gz"
go_url_arm64="https://go.dev/dl/go1.18.3.linux-arm64.tar.gz" go_url_arm64="https://go.dev/dl/go1.21.5.linux-arm64.tar.gz"
go_url_armv6="https://go.dev/dl/go1.18.3.linux-armv6l.tar.gz" go_url_armv6="https://go.dev/dl/go1.21.5.linux-armv6l.tar.gz"
function go_install() { function go_install() {
if ! command -v go &> /dev/null; then if ! command -v go &> /dev/null; then
@ -150,6 +150,7 @@ function go_install() {
;; ;;
esac esac
rm -rvf /usr/local/go/
tar -xvzf /tmp/golang.tar.gz -C /usr/local/ tar -xvzf /tmp/golang.tar.gz -C /usr/local/
rm /tmp/golang.tar.gz rm /tmp/golang.tar.gz
export GOPATH=/usr/local/go export GOPATH=/usr/local/go