mirror of
https://git.zepheris.com/zepheris/LinuxRMM-Script.git
synced 2024-11-23 14:07:19 +00:00
Merge pull request #8 from Sympatron/main
Detect if go is already installed and skip installation
This commit is contained in:
commit
93dd87fd67
@ -124,6 +124,7 @@ 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_armv6="https://go.dev/dl/go1.18.3.linux-armv6l.tar.gz"
|
||||||
|
|
||||||
function go_install() {
|
function go_install() {
|
||||||
|
if ! command -v go &> /dev/null; then
|
||||||
## Installing golang
|
## Installing golang
|
||||||
case $system in
|
case $system in
|
||||||
amd64)
|
amd64)
|
||||||
@ -146,6 +147,9 @@ function go_install() {
|
|||||||
export GOCACHE=/root/.cache/go-build
|
export GOCACHE=/root/.cache/go-build
|
||||||
|
|
||||||
echo "Golang Install Done !"
|
echo "Golang Install Done !"
|
||||||
|
else
|
||||||
|
echo "Go is already installed"
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
function agent_compile() {
|
function agent_compile() {
|
||||||
|
Loading…
Reference in New Issue
Block a user