From 39a78fcaa2229ab84963ab2c2feee8fddee74712 Mon Sep 17 00:00:00 2001 From: mattchis <1776285+mattchis@users.noreply.github.com> Date: Thu, 8 Dec 2022 14:19:13 -0700 Subject: [PATCH] Fixed issue with double entry of PATH variable with new chek_profile function. --- rmmagent-linux.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/rmmagent-linux.sh b/rmmagent-linux.sh index 5cd3c19..e8d285b 100644 --- a/rmmagent-linux.sh +++ b/rmmagent-linux.sh @@ -121,11 +121,9 @@ function go_install() { tar -xvzf /tmp/golang.tar.gz -C /usr/local/ rm /tmp/golang.tar.gz - export PATH=$PATH:/usr/local/go/bin export GOPATH=/usr/local/go export GOCACHE=/root/.cache/go-build - echo "export PATH=$PATH:/usr/local/go/bin" >> /root/.profile echo "Golang Install Done !" } @@ -219,8 +217,8 @@ function check_profile () { case $1 in install) - go_install check_profile + go_install install_mesh agent_compile install_agent