fix gopath

This commit is contained in:
rootzoll
2019-01-17 18:26:57 +01:00
parent 292a9625e8
commit 0bfd9f91bc

View File

@@ -3,6 +3,12 @@
# load raspiblitz config data # load raspiblitz config data
source /mnt/hdd/raspiblitz.conf source /mnt/hdd/raspiblitz.conf
# export go vars
export GOROOT=/usr/local/go
export PATH=$PATH:$GOROOT/bin
export GOPATH=/usr/local/gocode
export PATH=$PATH:$GOPATH/bin
# precheck if go is installed # precheck if go is installed
result=$(command -v go >/dev/null 2>/dev/null) result=$(command -v go >/dev/null 2>/dev/null)
if [ ${#result} -eq 0 ];then if [ ${#result} -eq 0 ];then
@@ -24,10 +30,6 @@ clear
echo "*** Setup ***" echo "*** Setup ***"
echo "" echo ""
echo "Installing zapconnect. Please wait..." echo "Installing zapconnect. Please wait..."
export GOROOT=/usr/local/go
export PATH=$PATH:$GOROOT/bin
export GOPATH=/usr/local/gocode
export PATH=$PATH:$GOPATH/bin
echo "" echo ""
echo "Getting github.com/LN-Zap/zapconnect (please wait) ..." echo "Getting github.com/LN-Zap/zapconnect (please wait) ..."
go get -d github.com/LN-Zap/zapconnect go get -d github.com/LN-Zap/zapconnect