This commit is contained in:
timur 2026-07-26 02:09:16 +05:00
parent 9268275922
commit d80e40b3f4
1 changed files with 7 additions and 0 deletions

View File

@ -33,6 +33,13 @@ if ! "${PYTHON_BIN}" -c 'import sys; raise SystemExit(sys.version_info < (3, 11)
exit 1
fi
# Updating files inside a running service's virtual environment is unsafe, and
# usermod refuses to update an account that currently owns processes.
if systemctl is-active --quiet llmserver.service; then
echo "Stopping llmserver for the update..."
systemctl stop llmserver.service
fi
if ! getent group llmserver >/dev/null; then
groupadd --system llmserver
fi