feat: add setup

This commit is contained in:
0xMRTT 2023-06-08 19:33:59 +02:00
parent 17c8532d47
commit e8c0d70870
Signed by: 0xMRTT
GPG Key ID: 910B287304120902
3 changed files with 19 additions and 0 deletions

View File

@ -0,0 +1,6 @@
## Setup
- Install poetry
- Copy `matrixai.service` to `~/.local/share/systemd/user/`
- Customize `run.sh` with your settings
- Fix the path to `run.sh` in the service file

7
matrixai.service Normal file
View File

@ -0,0 +1,7 @@
[Unit]
Description=Matrix AI
After=multi-user.target[Service]
Type=simple
Restart=always
ExecStart=/usr/bin/python3 /home/0xmrtt/matrixai/run.sh
WantedBy=multi-user.target

6
run.sh Executable file
View File

@ -0,0 +1,6 @@
cd /home/0xmrtt/matrixai
poetry install
export MATRIX_PASSWORD="a secret password"
poetry run python matrixai/__init__.py