hibbian-keyring/debian/postinst

19 lines
536 B
Plaintext
Raw Normal View History

2024-08-26 22:04:34 +01:00
#!/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#