- Upgrade path restarts only fenris-collect.timer, not fenris-collect.service (spec §7: "a running oneshot finishes on its old interpreter") - Remove redundant deb depends override in nfpm.yaml (top-level is sufficient) - Remove common.sh sourcing — scripts are self-contained to avoid path dependency when dpkg/rpm run them from /var/lib/dpkg/info/ Co-authored-by: CommandCodeBot <noreply@commandcode.ai>
20 lines
540 B
Bash
Executable File
20 lines
540 B
Bash
Executable File
#!/bin/sh
|
|
# postrm — deb post-removal (spec §7, §9).
|
|
#
|
|
# dpkg calls: postrm remove (after package files removed)
|
|
# postrm purge (after conffiles and config removed)
|
|
set -eu
|
|
|
|
case "${1:-}" in
|
|
purge)
|
|
rm -rf /etc/fenris
|
|
rm -rf /var/lib/fenris
|
|
if getent group fenris > /dev/null 2>&1; then
|
|
groupdel fenris 2>/dev/null || true
|
|
fi
|
|
;;
|
|
remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
|
|
;;
|
|
esac
|
|
systemctl daemon-reload 2>/dev/null || true
|