add current user to ollama group on install (#772)
This commit is contained in:
parent
c345b4ca7c
commit
c039432b5c
1 changed files with 3 additions and 0 deletions
|
@ -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]
|
||||||
|
|
Loading…
Reference in a new issue