On Tue, 15 Aug 2023 19:54:26 +0200 Santiago Vila <sanv...@debian.org> wrote:
> In preinst, do something like this: > > if upgrading-from-previous-version-whatever-is-coded > if [ ! -f /etc/logcheck/header.txt ]; then > touch /etc/logcheck.header.was.removed.txt > fi > fi > > Then in postinst, do something like this: > > if [ -f /etc/logcheck.header.was.removed.txt ] > rm -f /etc/logcheck/header.txt > rm -f /etc/logcheck.header.was.removed.txt > fi > > Completely untested, just an idea. https://salsa.debian.org/debian/logcheck/-/merge_requests/20 does this