summaryrefslogtreecommitdiff
path: root/debian/postinst
diff options
context:
space:
mode:
Diffstat (limited to 'debian/postinst')
-rw-r--r--debian/postinst18
1 files changed, 18 insertions, 0 deletions
diff --git a/debian/postinst b/debian/postinst
new file mode 100644
index 0000000..8cfd68a
--- /dev/null
+++ b/debian/postinst
@@ -0,0 +1,18 @@
+#!/bin/sh
+
+set -e
+
+# Remove keys from trusted.gpg -- now in trusted.gpg.d/
+# (Adapted code from postinst from debian-archive-keyring)
+if [ "$1" = 'configure' -a -n "$2" ]; then
+ if which gpg > /dev/null && which apt-key > /dev/null; then
+ TRUSTEDFILE='/etc/apt/trusted.gpg'
+ eval $(apt-config shell TRUSTEDFILE Apt::GPGV::TrustedKeyring)
+ eval $(apt-config shell TRUSTEDFILE Dir::Etc::Trusted/f)
+ if [ -e "$TRUSTEDFILE" ]; then
+ apt-key --keyring "$TRUSTEDFILE" del 5B546E55D30D2816 > /dev/null 2>&1 || :
+ fi
+ fi
+fi
+
+#DEBHELPER#