Browse Source

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

Bruce MacDonald 1 year ago
parent
commit
c039432b5c
1 changed files with 3 additions and 0 deletions
  1. 3 0
      scripts/install.sh

+ 3 - 0
scripts/install.sh

@@ -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]