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:
parent
d84271110c
commit
b8605efaf6
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue