summaryrefslogtreecommitdiffstats
path: root/packaging/debian/wireshark-common.postrm
diff options
context:
space:
mode:
Diffstat (limited to 'packaging/debian/wireshark-common.postrm')
-rw-r--r--packaging/debian/wireshark-common.postrm20
1 files changed, 20 insertions, 0 deletions
diff --git a/packaging/debian/wireshark-common.postrm b/packaging/debian/wireshark-common.postrm
new file mode 100644
index 00000000..c261d6b1
--- /dev/null
+++ b/packaging/debian/wireshark-common.postrm
@@ -0,0 +1,20 @@
+#!/bin/sh
+
+set -e
+
+GROUP=wireshark
+
+. /usr/share/debconf/confmodule
+
+if [ "$1" = "purge" ] ; then
+ if getent group $GROUP >/dev/null; then
+ if [ -x "$(command -v delgroup)" ]; then
+ if ! delgroup --quiet --system $GROUP; then
+ db_input high wireshark-common/group-removal-failed || true
+ db_go
+ fi
+ fi
+ fi
+fi
+
+#DEBHELPER#