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
|
StandardError=journal
|
||||||
SyslogIdentifier=telegram-bot
|
SyslogIdentifier=telegram-bot
|
||||||
|
|
||||||
# Security hardening
|
# Security hardening с исключениями для работы бота
|
||||||
NoNewPrivileges=true
|
NoNewPrivileges=true
|
||||||
ProtectSystem=strict
|
ProtectSystem=strict
|
||||||
ProtectHome=read-only
|
ProtectHome=read-only
|
||||||
PrivateTmp=true
|
PrivateTmp=true
|
||||||
|
ReadWritePaths=%WORKDIR%
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue