mirror of
https://git.zepheris.com/zepheris/LinuxRMM-Script.git
synced 2024-11-09 20:18:20 +00:00
- 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:
parent
311b2f74a0
commit
80b3169cd0
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user