From 7fe2fbd64e8fb62e4515560a754a128751b362d3 Mon Sep 17 00:00:00 2001 From: Benjamin Dweck Date: Wed, 7 Oct 2020 12:57:57 +0200 Subject: [PATCH] Updated README.md to reflect Debian package build --- README.md | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index abc209f..cbd3b26 100644 --- a/README.md +++ b/README.md @@ -13,20 +13,16 @@ A TORch solution consists of 3 processes: * MQTT broker - Any MQTT broker, reachable via IPv4 or Tor, through TLS or insecure communications * `torch-subscriber` - Listens for and handles onion hostname publications -## Installation of TORch Agent (Ubuntu) +## Build Debian Package -Copy the files to the target device -* `install-ubuntu2004.sh` -* `torch-agent.py` -* `torch.conf` -* `torch.service` +Run `make-pkg.sh` to build a Debian package and install it -Run the installation script: ```bash -vagrant@ubuntu2004:~$ ./install-ubuntu2004.sh +./make-pkg.sh +apt update && apt install build/torch-agent_0.0.1-1_all.deb ``` -This will create a local user `torch` and install the TORch agent as a Systemd service named `torch` +This will create a local user `torch` and install the TORch agent as a Systemd service named `torch-agent` ## Configuration @@ -43,6 +39,4 @@ See the sample [`torch.conf`](torch.conf) file for additional configuration opti ## Roadmap -[ ] Create a Debian service installation package - [ ] Create a [pi-gen](https://github.com/RPi-Distro/pi-gen) image with TORch agent installed and `/boot` partition configuration \ No newline at end of file