add current user to ollama group on install (#772)

This commit is contained in:
Bruce MacDonald 2023-10-23 17:06:31 -04:00 committed by GitHub
parent c345b4ca7c
commit c039432b5c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -74,6 +74,9 @@ configure_systemd() {
$SUDO useradd -r -s /bin/false -m -d /usr/share/ollama ollama $SUDO useradd -r -s /bin/false -m -d /usr/share/ollama ollama
fi fi
status "Adding current user to ollama group..."
$SUDO usermod -a -G ollama $(whoami)
status "Creating ollama systemd service..." status "Creating ollama systemd service..."
cat <<EOF | $SUDO tee /etc/systemd/system/ollama.service >/dev/null cat <<EOF | $SUDO tee /etc/systemd/system/ollama.service >/dev/null
[Unit] [Unit]