summaryrefslogtreecommitdiffstats
path: root/debian/wireshark-common.postrm
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-10 20:34:13 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-10 20:34:13 +0000
commit5033b68d4d2519270fa3690ed1a31fd3e4f7e777 (patch)
treeab9889da869694224fc01fa4f677b97ada54b544 /debian/wireshark-common.postrm
parentAdding upstream version 4.2.2. (diff)
downloadwireshark-5033b68d4d2519270fa3690ed1a31fd3e4f7e777.tar.xz
wireshark-5033b68d4d2519270fa3690ed1a31fd3e4f7e777.zip
Adding debian version 4.2.2-1.debian/4.2.2-1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r--debian/wireshark-common.postrm18
1 files changed, 18 insertions, 0 deletions
diff --git a/debian/wireshark-common.postrm b/debian/wireshark-common.postrm
new file mode 100644
index 0000000..c713d38
--- /dev/null
+++ b/debian/wireshark-common.postrm
@@ -0,0 +1,18 @@
+#!/bin/sh
+
+set -e
+
+GROUP=wireshark
+
+. /usr/share/debconf/confmodule
+
+if [ "$1" = "purge" ] ; then
+ if getent group $GROUP >/dev/null && command -v delgroup > /dev/null; then
+ if ! delgroup --quiet --system $GROUP; then
+ db_input high wireshark-common/group-removal-failed || true
+ db_go
+ fi
+ fi
+fi
+
+#DEBHELPER#