mirror of
https://git.zepheris.com/zepheris/LinuxRMM-Script.git
synced 2024-11-23 14:07:19 +00: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/
|
tar -xvzf /tmp/golang.tar.gz -C /usr/local/
|
||||||
rm /tmp/golang.tar.gz
|
rm /tmp/golang.tar.gz
|
||||||
export PATH=$PATH:/usr/local/go/bin
|
|
||||||
export GOPATH=/usr/local/go
|
export GOPATH=/usr/local/go
|
||||||
export GOCACHE=/root/.cache/go-build
|
export GOCACHE=/root/.cache/go-build
|
||||||
|
|
||||||
echo "export PATH=$PATH:/usr/local/go/bin" >> /root/.profile
|
|
||||||
echo "Golang Install Done !"
|
echo "Golang Install Done !"
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -219,8 +217,8 @@ function check_profile () {
|
|||||||
|
|
||||||
case $1 in
|
case $1 in
|
||||||
install)
|
install)
|
||||||
go_install
|
|
||||||
check_profile
|
check_profile
|
||||||
|
go_install
|
||||||
install_mesh
|
install_mesh
|
||||||
agent_compile
|
agent_compile
|
||||||
install_agent
|
install_agent
|
||||||
|
Loading…
Reference in New Issue
Block a user