author | Alberto Bertogli
<albertito@blitiri.com.ar> 2018-07-21 12:13:34 UTC |
committer | Alberto Bertogli
<albertito@blitiri.com.ar> 2018-07-21 12:16:55 UTC |
parent | 3f53b34cd1e77e681df759d320ab4fb607702dc2 |
README.md | +8 | -6 |
diff --git a/README.md b/README.md index d05ee93..6f9210c 100644 --- a/README.md +++ b/README.md @@ -41,18 +41,20 @@ sudo apt install dnss ### Manual install +To download and build the binary: + ```shell -# If you have Go installed but no environment prepared, do: -mkdir /tmp/dnss; export GOPATH=/tmp/dnss; cd $GOPATH +go install blitiri.com.ar/go/dnss +``` -# Download and build the binary. -go get blitiri.com.ar/go/dnss +And if you want to configure the daemon to be automatically run by systemd: +```shell # 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/blitiri.com.ar/go/dnss/etc/systemd/dns-to-https/* \ +sudo cp "$GOPATH"/src/blitiri.com.ar/go/dnss/etc/systemd/dns-to-https/* \ /etc/systemd/system/ sudo systemctl dnss enable