浏览代码

Add ollama user to render group for Radeon support

For the ROCm libraries to access the driver, we need to add the ollama user
to the render group.
Daniel Hiltgen 1 年之前
父节点
当前提交
2588cb2daa
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      scripts/install.sh

+ 4 - 0
scripts/install.sh

@@ -76,6 +76,10 @@ configure_systemd() {
         status "Creating ollama user..."
         $SUDO useradd -r -s /bin/false -m -d /usr/share/ollama ollama
     fi
+    if getent group render >/dev/null 2>&1; then
+        status "Adding ollama user to render group..."
+        $SUDO usermod -a -G render ollama
+    fi
 
     status "Adding current user to ollama group..."
     $SUDO usermod -a -G ollama $(whoami)