Explorar o código

Merge pull request #2838 from dhiltgen/opensuse

Add ollama user to video group
Daniel Hiltgen hai 1 ano
pai
achega
cbd6e3b38e
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      scripts/install.sh

+ 4 - 0
scripts/install.sh

@@ -88,6 +88,10 @@ configure_systemd() {
         status "Adding ollama user to render group..."
         $SUDO usermod -a -G render ollama
     fi
+    if getent group video >/dev/null 2>&1; then
+        status "Adding ollama user to video group..."
+        $SUDO usermod -a -G video ollama
+    fi
 
     status "Adding current user to ollama group..."
     $SUDO usermod -a -G ollama $(whoami)