Unverified Commit c039432b authored by Bruce MacDonald's avatar Bruce MacDonald Committed by GitHub
Browse files

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

parent c345b4ca
...@@ -74,6 +74,9 @@ configure_systemd() { ...@@ -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]
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment