Merge pull request #1776 from dhiltgen/render_group
Add ollama user to render group for Radeon support
This commit is contained in:
commit
1184686649
1 changed files with 4 additions and 0 deletions
|
@ -76,6 +76,10 @@ configure_systemd() {
|
||||||
status "Creating ollama user..."
|
status "Creating ollama user..."
|
||||||
$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
|
||||||
|
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..."
|
status "Adding current user to ollama group..."
|
||||||
$SUDO usermod -a -G ollama $(whoami)
|
$SUDO usermod -a -G ollama $(whoami)
|
||||||
|
|
Loading…
Reference in a new issue