fix: добавить ReadWritePaths в systemd сервис

- Добавить ReadWritePaths=%WORKDIR% для разрешения записи в БД
- Исправляет ошибку 'attempt to write a readonly database' от ChromaDB

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
This commit is contained in:
mirivlad 2026-02-25 15:08:07 +08:00
parent d84271110c
commit b8605efaf6
1 changed files with 2 additions and 1 deletions

View File

@ -14,11 +14,12 @@ StandardOutput=journal
StandardError=journal
SyslogIdentifier=telegram-bot
# Security hardening
# Security hardening с исключениями для работы бота
NoNewPrivileges=true
ProtectSystem=strict
ProtectHome=read-only
PrivateTmp=true
ReadWritePaths=%WORKDIR%
[Install]
WantedBy=multi-user.target