This commit is contained in:
parent
9268275922
commit
d80e40b3f4
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue