Files
odoo-ai/debian/DEBIAN/postrm
ActiveBlue Build fb4bf56816 feat(packaging): add Debian packaging and APT repository scripts
debian/DEBIAN/control: package metadata, depends on python3.11+, postgresql-client
debian/DEBIAN/postinst: creates activeblue-ai system user, installs venv, enables service
debian/DEBIAN/prerm: stops and disables service before removal
debian/DEBIAN/postrm: purge removes config, logs, venv, and system user
debian/lib/systemd/system/activeblue-ai.service:
  - Runs as dedicated user with PrivateTmp + ProtectSystem hardening
  - EnvironmentFile=/etc/activeblue-ai/.env
  - Restart=on-failure with 5s backoff
debian/usr/bin/activeblue-ai: CLI with start/stop/restart/status/logs/migrate/health/sweep/privacy/version
build_deb.sh: builds activeblue-ai_X.Y.Z_all.deb in dist/
publish_repo.sh: scans packages, generates Release + checksums, optional GPG signing

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-12 18:09:48 -04:00

13 lines
283 B
Bash

#!/bin/bash
set -e
if [ "$1" = "purge" ]; then
rm -rf /usr/lib/activeblue-ai/venv
rm -rf /var/log/activeblue-ai
rm -rf /etc/activeblue-ai
if id activeblue-ai &>/dev/null; then
deluser --system activeblue-ai || true
fi
echo "ActiveBlue AI purged."
fi