aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLucio Sauer <watermanpaint@posteo.net>2024-07-12 01:09:59 +0200
committerLucio Sauer <watermanpaint@posteo.net>2024-07-12 02:33:51 +0200
commit5614ba834e57416c7a6f60c3fa85cc0d16cafc57 (patch)
tree285309acdacb76091ebbd1ec2e95d86a8d82505c /app-misc
parentgames-strategy/gigalomania: add braces (diff)
downloadguru-5614ba834e57416c7a6f60c3fa85cc0d16cafc57.tar.gz
guru-5614ba834e57416c7a6f60c3fa85cc0d16cafc57.tar.bz2
guru-5614ba834e57416c7a6f60c3fa85cc0d16cafc57.zip
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: f6b23710f8146d9d665addb37da03f8573180977 Signed-off-by: Lucio Sauer <watermanpaint@posteo.net>
Diffstat (limited to 'app-misc')
-rw-r--r--app-misc/ollama/files/ollama2
-rw-r--r--app-misc/ollama/ollama-9999.ebuild4
2 files changed, 3 insertions, 3 deletions
diff --git a/app-misc/ollama/files/ollama b/app-misc/ollama/files/ollama
index cbd787768..9359f48a1 100644
--- a/app-misc/ollama/files/ollama
+++ b/app-misc/ollama/files/ollama
@@ -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.
diff --git a/app-misc/ollama/ollama-9999.ebuild b/app-misc/ollama/ollama-9999.ebuild
index 3db009887..ded584254 100644
--- a/app-misc/ollama/ollama-9999.ebuild
+++ b/app-misc/ollama/ollama-9999.ebuild
@@ -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() {