From 359f6a66c16164540cebcf2b929708ce9df1263d Mon Sep 17 00:00:00 2001 From: mirivlad Date: Wed, 25 Feb 2026 15:14:37 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=D0=B4=D0=BE=D0=B1=D0=B0=D0=B2=D0=B8?= =?UTF-8?q?=D1=82=D1=8C=20=D0=B4=D0=BE=D1=81=D1=82=D1=83=D0=BF=20=D0=BA=20?= =?UTF-8?q?~/.cache=20=D0=B4=D0=BB=D1=8F=20huggingface=20=D0=BC=D0=BE?= =?UTF-8?q?=D0=B4=D0=B5=D0=BB=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Добавить %HOME%/.cache в ReadWritePaths - Исправляет ошибку загрузки sentence-transformers модели - Модель уже загружена в кэше, теперь сервис сможет её использовать Co-authored-by: Qwen-Coder --- install-systemd-service.sh | 2 +- telegram-bot.service | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/install-systemd-service.sh b/install-systemd-service.sh index a2ab9ab..f590bbb 100755 --- a/install-systemd-service.sh +++ b/install-systemd-service.sh @@ -78,7 +78,7 @@ NoNewPrivileges=true ProtectSystem=strict ProtectHome=read-only PrivateTmp=true -ReadWritePaths=$BOT_DIR $NVM_DIR +ReadWritePaths=$BOT_DIR $NVM_DIR /home/$BOT_USER/.cache [Install] WantedBy=multi-user.target diff --git a/telegram-bot.service b/telegram-bot.service index b2208e0..4226aaa 100644 --- a/telegram-bot.service +++ b/telegram-bot.service @@ -21,7 +21,7 @@ NoNewPrivileges=true ProtectSystem=strict ProtectHome=read-only PrivateTmp=true -ReadWritePaths=%WORKDIR% %HOME%/.npm-global %HOME%/.nvm %HOME%/.config/nvm +ReadWritePaths=%WORKDIR% %HOME%/.npm-global %HOME%/.nvm %HOME%/.config/nvm %HOME%/.cache [Install] WantedBy=multi-user.target