summaryrefslogtreecommitdiffstats
path: root/debian/postrm
diff options
context:
space:
mode:
Diffstat (limited to 'debian/postrm')
-rw-r--r--debian/postrm11
1 files changed, 11 insertions, 0 deletions
diff --git a/debian/postrm b/debian/postrm
new file mode 100644
index 000000000..f640fb0b4
--- /dev/null
+++ b/debian/postrm
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+set -e
+
+case "$1" in
+ purge|remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
+ if [ -x /usr/sbin/suidunregister ]; then
+ suidunregister -s gpg /usr/bin/gpg
+ fi
+ ;;
+esac