git » dnss » commit 811cfee

README: Simplify manual install instructions

author Alberto Bertogli
2018-07-21 12:13:34 UTC
committer Alberto Bertogli
2018-07-21 12:16:55 UTC
parent 3f53b34cd1e77e681df759d320ab4fb607702dc2

README: Simplify manual install instructions

All supported Go versions have a default $GOPATH, so there's no need to
include it in the instructions.

Also split the build vs. systemd parts, for clarity. +8 -6

diff --git a/ b/
index d05ee93..6f9210c 100644
--- a/
+++ b/
@@ -41,18 +41,20 @@ sudo apt install dnss
 ### Manual install
+To download and build the binary:
-# If you have Go installed but no environment prepared, do:
-mkdir /tmp/dnss; export GOPATH=/tmp/dnss; cd $GOPATH
+go install
-# Download and build the binary.
-go get
+And if you want to configure the daemon to be automatically run by systemd:
 # Copy the binary to a system-wide location.
-sudo cp $GOPATH/bin/dnss /usr/local/bin
+sudo cp "$GOPATH/bin/dnss" /usr/local/bin/
 # Set it up in systemd.
-sudo cp $GOPATH/src/* \
+sudo cp "$GOPATH"/src/* \
 sudo systemctl dnss enable