Skip to content

Commit 4e1e829

Browse files
Variable for Go binary.
1 parent a984e92 commit 4e1e829

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

setup.sh

+3-2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
INSTALL_DIR=/opt/scrape
55
USER=scrape
6+
GO_BIN=go
67

78
# Create service user account
89
echo "Adding $USER account."
@@ -15,8 +16,8 @@ echo "User account $USER created with password $pass."
1516
sudo apt install golang
1617

1718
# Build our binary
18-
GOPATH=/tmp/go go get github.com/asggo/store
19-
GOPATH=/tmp/go go build
19+
GOPATH=/tmp/go "$GO_BIN" get github.com/asggo/store
20+
GOPATH=/tmp/go "$GO_BIN" build
2021

2122
# Install
2223
mkdir ${INSTALL_DIR}

0 commit comments

Comments
 (0)