disable service for now

This commit is contained in:
2025-11-19 02:37:24 -07:00
parent 166fd7c886
commit 1592d9ee7c
3 changed files with 25 additions and 1 deletions

2
debian/changelog vendored
View File

@@ -1,4 +1,4 @@
ollama (0.12.11rakuos1) unstable; urgency=medium ollama (0.12.11rakuos4) unstable; urgency=medium
* Initial packaging. * Initial packaging.

4
debian/postinst vendored Executable file
View File

@@ -0,0 +1,4 @@
#!/bin/sh
set -e
#systemctl enable --now ollama.service

20
debian/preinst vendored Executable file
View File

@@ -0,0 +1,20 @@
#!/bin/sh
set -e
# Create ollama system user + group if not exist
if ! id ollama >/dev/null 2>&1; then
adduser \
--system \
--home /var/lib/ollama \
--shell /usr/sbin/nologin \
--no-create-home \
--group \
ollama
fi
# Make sure home exists
mkdir -p /var/lib/ollama
chown ollama:ollama /var/lib/ollama
chmod 750 /var/lib/ollama
exit 0