From 9a328555405aba7b7959d7a88585a307c1d98139 Mon Sep 17 00:00:00 2001 From: Pieter Lexis Date: Mon, 29 Oct 2018 16:51:22 +0100 Subject: [PATCH] pkgs: prevent dpkg warnings This removes several files that _might_ be on-disk from an older package to prevent dpkg to stumble over them. Closes #7066 --- .../debian/authoritative/debian-jessie/pdns-server.preinst | 4 ++++ .../debian/authoritative/debian-stretch/pdns-server.preinst | 4 ++++ .../debian/authoritative/ubuntu-trusty/pdns-server.preinst | 4 ++++ 3 files changed, 12 insertions(+) diff --git a/builder-support/debian/authoritative/debian-jessie/pdns-server.preinst b/builder-support/debian/authoritative/debian-jessie/pdns-server.preinst index 837a3a0fcf..1e95bb3c8b 100644 --- a/builder-support/debian/authoritative/debian-jessie/pdns-server.preinst +++ b/builder-support/debian/authoritative/debian-jessie/pdns-server.preinst @@ -43,6 +43,10 @@ case "$1" in ucf_delete_unchanged "/etc/powerdns/pdns.d/pdns.simplebind.conf" backup_conffile "/etc/powerdns/pdns.d/pdns.simplebind.conf" fi + + # Remove files no longer in the package (and unused) + rm -f /etc/resolvconf/update.d/pdns + rm -f /etc/insserv.d/pdns-server ;; esac diff --git a/builder-support/debian/authoritative/debian-stretch/pdns-server.preinst b/builder-support/debian/authoritative/debian-stretch/pdns-server.preinst index 837a3a0fcf..1e95bb3c8b 100644 --- a/builder-support/debian/authoritative/debian-stretch/pdns-server.preinst +++ b/builder-support/debian/authoritative/debian-stretch/pdns-server.preinst @@ -43,6 +43,10 @@ case "$1" in ucf_delete_unchanged "/etc/powerdns/pdns.d/pdns.simplebind.conf" backup_conffile "/etc/powerdns/pdns.d/pdns.simplebind.conf" fi + + # Remove files no longer in the package (and unused) + rm -f /etc/resolvconf/update.d/pdns + rm -f /etc/insserv.d/pdns-server ;; esac diff --git a/builder-support/debian/authoritative/ubuntu-trusty/pdns-server.preinst b/builder-support/debian/authoritative/ubuntu-trusty/pdns-server.preinst index 837a3a0fcf..1e95bb3c8b 100644 --- a/builder-support/debian/authoritative/ubuntu-trusty/pdns-server.preinst +++ b/builder-support/debian/authoritative/ubuntu-trusty/pdns-server.preinst @@ -43,6 +43,10 @@ case "$1" in ucf_delete_unchanged "/etc/powerdns/pdns.d/pdns.simplebind.conf" backup_conffile "/etc/powerdns/pdns.d/pdns.simplebind.conf" fi + + # Remove files no longer in the package (and unused) + rm -f /etc/resolvconf/update.d/pdns + rm -f /etc/insserv.d/pdns-server ;; esac -- 2.47.2