summaryrefslogtreecommitdiffstats
path: root/debian
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-06 00:54:28 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-06 00:54:28 +0000
commitc0c8b2013ce5099bf46193e83a3df9a8cfe1b1ce (patch)
treef09001ac23f3a119738a751591eba65aec52d71d /debian
parentAdding update-alternatives to use kdig for /usr/bin/dig. (diff)
downloadknot-c0c8b2013ce5099bf46193e83a3df9a8cfe1b1ce.tar.xz
knot-c0c8b2013ce5099bf46193e83a3df9a8cfe1b1ce.zip
Adding update-alternatives to use knsupdate for /usr/bin/nsupdate.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian')
-rw-r--r--debian/knot-dnsutils.postinst5
-rw-r--r--debian/knot-dnsutils.prerm3
2 files changed, 8 insertions, 0 deletions
diff --git a/debian/knot-dnsutils.postinst b/debian/knot-dnsutils.postinst
index e406690..6dd71b7 100644
--- a/debian/knot-dnsutils.postinst
+++ b/debian/knot-dnsutils.postinst
@@ -8,6 +8,11 @@ case "${1}" in
update-alternatives --quiet \
--install /usr/bin/dig dig /usr/bin/kdig 10 \
--slave /usr/share/man/man1/dig.1.gz dig.1.gz /usr/share/man/man1/kdig.1.gz
+
+ # update-alternatives: nsupdate
+ update-alternatives --quiet \
+ --install /usr/bin/nsupdate nsupdate /usr/bin/knsupdate 10 \
+ --slave /usr/share/man/man1/nsupdate.1.gz nsupdate.1.gz /usr/share/man/man1/knsupdate.1.gz
;;
abort-upgrade|abort-remove|abort-deconfigure)
diff --git a/debian/knot-dnsutils.prerm b/debian/knot-dnsutils.prerm
index 178b8a1..3b04f07 100644
--- a/debian/knot-dnsutils.prerm
+++ b/debian/knot-dnsutils.prerm
@@ -6,6 +6,9 @@ case "${1}" in
remove|upgrade|deconfigure)
# update-alternatives: dig
update-alternatives --quiet --remove dig /usr/bin/kdig
+
+ # update-alternatives: nsupdate
+ update-alternatives --quiet --remove nsupdate /usr/bin/knsupdate
;;
failed-upgrade)