disable service for now
This commit is contained in:
2
debian/changelog
vendored
2
debian/changelog
vendored
@@ -1,4 +1,4 @@
|
||||
ollama (0.12.11rakuos1) unstable; urgency=medium
|
||||
ollama (0.12.11rakuos4) unstable; urgency=medium
|
||||
|
||||
* Initial packaging.
|
||||
|
||||
|
||||
4
debian/postinst
vendored
Executable file
4
debian/postinst
vendored
Executable file
@@ -0,0 +1,4 @@
|
||||
#!/bin/sh
|
||||
set -e
|
||||
|
||||
#systemctl enable --now ollama.service
|
||||
20
debian/preinst
vendored
Executable file
20
debian/preinst
vendored
Executable 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
|
||||
Reference in New Issue
Block a user