From fb39d4bfc9cd59ef192f435d13ebc423590bc3d8 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Apr 2024 18:00:36 +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