disable service for now
This commit is contained in:
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