Created
February 13, 2019 11:14
-
-
Save robshep/96f46233e03c0f417eeeeb12f1b7d1e8 to your computer and use it in GitHub Desktop.
Building ovpn
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# OVPN local build | |
export GOPATH=/root/gocode | |
cd /root/gocode | |
go get -u github.com/cad/ovpm/... | |
go get -u github.com/jteeuwen/go-bindata/... | |
cd ~/gocode/src/github.com/cad/ovpm | |
# Edit templates/server.conf.tpl | |
go-bindata -pkg bindata -o bindata/bindata.go template/ | |
GOOS=linux go build -o /root/gocode/bin/ovpmd ./cmd/ovpmd | |
GOOS=linux go build -o /root/gocode/bin/ovpm ./cmd/ovpm |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment