summaryrefslogtreecommitdiff
path: root/debian/postrm
diff options
context:
space:
mode:
authorDawid Rycerz <dawid@rycerz.xyz>2026-01-22 22:07:32 +0100
committerDawid Rycerz <dawid@rycerz.xyz>2026-02-10 18:44:26 +0100
commit064a1d01c5c14f5ecc032fa9b8346a4a88b893f6 (patch)
treea2023f9ccd297ed8a41a3a0cc5699c2add09244d /debian/postrm
witryna 0.1.0 — initial releasev0.1.0
Minimalist Git-based static site deployment orchestrator. Webhook-triggered builds in Podman/Docker containers with atomic symlink publishing, SIGHUP hot-reload, and zero-downtime deploys. See README.md for usage, CHANGELOG.md for details.
Diffstat (limited to 'debian/postrm')
-rw-r--r--debian/postrm19
1 files changed, 19 insertions, 0 deletions
diff --git a/debian/postrm b/debian/postrm
new file mode 100644
index 0000000..5a7f86a
--- /dev/null
+++ b/debian/postrm
@@ -0,0 +1,19 @@
+#!/bin/bash
+set -e
+case "$1" in
+ purge)
+ if getent passwd witryna >/dev/null; then
+ deluser --quiet --system witryna >/dev/null || true
+ fi
+ if getent group witryna >/dev/null; then
+ delgroup --quiet --system witryna >/dev/null || true
+ fi
+ rm -rf /etc/witryna
+ rm -rf /etc/systemd/system/witryna.service.d
+ systemctl daemon-reload >/dev/null 2>&1 || true
+ loginctl disable-linger witryna >/dev/null 2>&1 || true
+ # /var/lib/witryna and /var/log/witryna left for manual cleanup
+ ;;
+esac
+#DEBHELPER#
+exit 0