Calling ollama.service, removing UMask

This commit is contained in:
ulmentflam 2024-06-14 11:11:34 -04:00
parent 9bd6972ef9
commit 4f48a615e3
No known key found for this signature in database

View file

@ -22,6 +22,7 @@ msg_ok "Installed Dependencies"
msg_info "Installing Ollama" msg_info "Installing Ollama"
$STD curl -fsSL https://ollama.com/install.sh | sh $STD curl -fsSL https://ollama.com/install.sh | sh
msg_ok "Installed Ollama" msg_ok "Installed Ollama"
msg_info "Creating Service" msg_info "Creating Service"
@ -32,14 +33,13 @@ After=network-online.target
[Service] [Service]
Type=simple Type=simple
UMask=007
ExecStart=/usr/bin/ollama serve ExecStart=/usr/bin/ollama serve
Restart=always Restart=always
RestartSec=3 RestartSec=3
[Install] [Install]
WantedBy=multi-user.target" >$service_path WantedBy=multi-user.target" >$service_path
systemctl enable --now -q ollama systemctl enable -q --now ollama.service
msg_ok "Created Service" msg_ok "Created Service"
motd_ssh motd_ssh