mirror of
https://github.com/whit3rabbit/anyllm-proxy.git
synced 2026-09-21 16:00:49 +00:00
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
22 lines
529 B
Bash
Executable File
22 lines
529 B
Bash
Executable File
#!/bin/sh
|
|
set -e
|
|
|
|
case "$1" in
|
|
configure)
|
|
# Create system user if it does not exist
|
|
if ! getent passwd anyllm >/dev/null 2>&1; then
|
|
adduser --system --group --home /var/lib/anyllm --no-create-home --quiet anyllm
|
|
fi
|
|
|
|
# Create data directory
|
|
install -d -o anyllm -g anyllm -m 0750 /var/lib/anyllm
|
|
|
|
# Reload systemd to pick up the new unit file
|
|
if [ -d /run/systemd/system ]; then
|
|
systemctl daemon-reload || true
|
|
fi
|
|
;;
|
|
esac
|
|
|
|
exit 0
|