#!/bin/sh # llmsproxy core package postinst set -e # Runtime state belongs under /etc/llmsproxy just like the production layout: # runtime.json holds keys/created sources and is NOT touched on reinstall. mkdir -p /etc/llmsproxy/adapters if [ -f /etc/llmsproxy/config.yaml ]; then echo "llmsproxy: keeping existing /etc/llmsproxy/config.yaml" else # seed a starter config from the packaged example cp -f /usr/share/llmsproxy/config.example.yaml /etc/llmsproxy/config.yaml 2>/dev/null || true chmod 0644 /etc/llmsproxy/config.yaml fi # systemd if command -v systemctl >/dev/null 2>&1; then systemctl daemon-reload >/dev/null 2>&1 || true echo "llmsproxy: use 'systemctl enable --now llmsproxy' to start" fi exit 0