mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-04-07 03:10:15 -04:00
app-misc/ollama: create log dir for ollama user in "${ED}"
Fixes build and improves package, because there's no need for Portage to
track and potentially remove individual log files upon package removal.
Fixes: f6b23710f8
Signed-off-by: Lucio Sauer <watermanpaint@posteo.net>
This commit is contained in:
@@ -7,7 +7,7 @@ command_user="ollama"
|
||||
command_group="ollama"
|
||||
command_background="yes"
|
||||
pidfile="/run/ollama.pid"
|
||||
log="/var/log/ollama.log"
|
||||
log="/var/log/ollama/ollama.log"
|
||||
|
||||
# Ollama allows cross-origin requests from 127.0.0.1 and 0.0.0.0 by default.
|
||||
# Additional origins can be configured with OLLAMA_ORIGINS.
|
||||
|
||||
@@ -62,8 +62,8 @@ src_install() {
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
touch /var/log/ollama.log || die
|
||||
fowners ollama:ollama /var/log/ollama.log
|
||||
keepdir /var/log/ollama
|
||||
fowners ollama:ollama /var/log/ollama
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
|
||||
Reference in New Issue
Block a user