diff options
| author | Dave Hibberd <hibby@debian.org> | 2024-08-26 22:04:34 +0100 |
|---|---|---|
| committer | Dave Hibberd <hibby@debian.org> | 2024-08-26 22:04:34 +0100 |
| commit | b3a2df6db939b251b472a8dc24a1625b00aa7bfa (patch) | |
| tree | 17e06c06830a3d478d84565080098234c88b2bbf /debian/postinst | |
| parent | 56f00ffbbebd3c31f02c076652e04233c6f7a800 (diff) | |
hibban sources and keyring
Diffstat (limited to 'debian/postinst')
| -rw-r--r-- | debian/postinst | 18 |
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# |
