Skip to content

Commit

Permalink
README: Update build instructions
Browse files Browse the repository at this point in the history
The build instructions are a bit outdated since Go tooling has changed
in recent years. This patch updates them to match current best
practices.
  • Loading branch information
albertito committed Aug 6, 2023
1 parent 1ba973f commit 38ca607
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,21 +41,22 @@ sudo apt install dnss

### Manual install

To download and build the binary:
To clone the repository and build the binary:

```shell
go install blitiri.com.ar/go/dnss
git clone https://blitiri.com.ar/repos/dnss
cd dnss
go build
```

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 dnss /usr/local/bin/

# Set it up in systemd.
sudo cp "$GOPATH"/src/blitiri.com.ar/go/dnss/etc/systemd/dns-to-https/* \
/etc/systemd/system/
sudo cp etc/systemd/dns-to-https/* /etc/systemd/system/

sudo systemctl dnss enable
```
Expand Down

0 comments on commit 38ca607

Please sign in to comment.