Verified Commit aeed8358 authored by Jakob Moser's avatar Jakob Moser
Browse files

Add basic systemd unit, flesh out deployment instructions

parent 25e6ab89
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -152,9 +152,17 @@ Install dependencies:
sudo apt install cryptsetup
```

Create a user account called `poolpay`. Equip it with the necessary permissions:

* Allow `poolpay` to access GPIO
* Allow `poolpay` to use `sudo` **to use `luks`** (don't give it general sudo access)!

Create a folder `/coli`, cd into it and make sure the permissions are correct.

Clone the repository (you can use a Project Access Token for that, Settings → Access Tokens) and cd into it.

```bash
cd /coli/poolpay
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt

poolpay.service

0 → 100644
+10 −0
Original line number Diff line number Diff line
[Unit]
Description=PoolPay

[Service]
ExecStart=/coli/poolpay/venv/bin/python3 -m poolpay
WorkingDirectory=/coli/poolpay
User=poolpay

[Install]
WantedBy=multi-user.target