fix: derive brewpi home from script location in service install

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VsJfJngYUpB4dr77GvcEb8
This commit is contained in:
2026-07-01 00:58:48 +02:00
co-authored by Claude Sonnet 4.6
parent 6651d43314
commit ab52c7e599
2 changed files with 7 additions and 5 deletions
+2 -2
View File
@@ -5,8 +5,8 @@ After=network.target
[Service]
Type=simple
User=jens
WorkingDirectory=/home/jens/work/repos/brewpi
ExecStart=/home/jens/work/repos/brewpi/.venv/bin/python3 /home/jens/work/repos/brewpi/server/brewpi.py
WorkingDirectory=${BREWPI_HOME}
ExecStart=${BREWPI_HOME}/.venv/bin/python3 ${BREWPI_HOME}/server/brewpi.py
Restart=on-failure
RestartSec=5