From 9a7232a4beafecb5be5361df974970d841e6f221 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 27 Apr 2024 09:27:25 +0200 Subject: Using update-alternatives to handle /usr/bin/dig. Signed-off-by: Daniel Baumann --- debian/bind9-dnsutils.prerm | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 debian/bind9-dnsutils.prerm (limited to 'debian/bind9-dnsutils.prerm') diff --git a/debian/bind9-dnsutils.prerm b/debian/bind9-dnsutils.prerm new file mode 100644 index 0000000..07589cc --- /dev/null +++ b/debian/bind9-dnsutils.prerm @@ -0,0 +1,23 @@ +#!/bin/sh + +set -e + +case "${1}" in + remove|upgrade|deconfigure) + # update-alternatives: dig + update-alternatives --quiet --remove dig /usr/bin/dig.bind9 + ;; + + failed-upgrade) + + ;; + + *) + echo "prerm called with unknown argument \`${1}'" >&2 + exit 1 + ;; +esac + +#DEBHELPER# + +exit 0 -- cgit v1.2.3