Browse Source

Take GPG key lookup via email for signing into account

dh_python
B.J. Dweck 1 year ago
parent
commit
9b53e5c2ac
2 changed files with 23 additions and 4 deletions
  1. +12
    -3
      README.md
  2. +11
    -1
      make-pkg.sh

+ 12
- 3
README.md View File

@ -15,14 +15,23 @@ A TORch solution consists of 3 processes:
## Build Debian Package
Run `make-pkg.sh` to build a Debian package and install it
If you don't already have a GPG key, generate one:
```bash
./make-pkg.sh
gpg --full-generate-key
```
Using the e-mail address you provided during GPG key generation, run `make-pkg.sh` to build a Debian package and install it
```bash
./make-pkg.sh [email protected]
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-agent`
This will:
* create a local user `torch`
* install the TORch agent as a Systemd service named `torch-agent`
* modify `/etc/tor/torrc` to activate control via the Tor Controller port
## Configuration

+ 11
- 1
make-pkg.sh View File

@ -1,6 +1,16 @@
#!/bin/bash
TORCH_VERSION=0.0.1
if [[ -z "${DEBEMAIL}" ]]; then
DEBEMAIL="$1"
fi
if [[ -z "${DEBEMAIL}" ]]; then
echo "E-mail address required for packaging signing with gpg key!"
echo "Usage: ./make-pkg.sh EMAIL"
exit 1
fi
TORCH_VERSION=$(git describe --tags)
DEBIAN_PKG=torch-agent-$TORCH_VERSION
PKG_ROOT=build/$DEBIAN_PKG

Loading…
Cancel
Save