mirror of
https://github.com/netvolt/LinuxRMM-Script.git
synced 2024-11-24 16:43:08 +01:00
Fixed issue with double entry of PATH variable with new chek_profile function.
This commit is contained in:
parent
ff0eb12f2a
commit
39a78fcaa2
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user