From edd02aa960301b52f94c88efb6fae0d3ca79b548 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Fri, 19 Apr 2024 08:03:02 +0200 Subject: Adding debian version 1:2.6.4-3. Signed-off-by: Daniel Baumann --- debian/nfs-common.postrm | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 debian/nfs-common.postrm (limited to 'debian/nfs-common.postrm') diff --git a/debian/nfs-common.postrm b/debian/nfs-common.postrm new file mode 100644 index 0000000..2a0ce42 --- /dev/null +++ b/debian/nfs-common.postrm @@ -0,0 +1,27 @@ +#!/bin/sh + +set -e + +#DEBHELPER# + +case "$1" in + purge) + for FILE in /etc/default/nfs-common /etc/idmapd.conf /etc/nfs.conf; do + # Taken from the ucf example postrm + for ext in '~' '%' .bak .dpkg-tmp .dpkg-new .dpkg-old .dpkg-dist; do + rm -f $FILE$ext + done + rm -f $FILE + if [ -x /usr/bin/ucf ]; then + ucf --purge $FILE + fi + done + rm -f /etc/nfs.conf.d/local.conf + + rm -f /var/lib/nfs/state \ + /var/lib/nfs/sm/* \ + /var/lib/nfs/sm.bak/* + + dpkg-statoverride --remove /sbin/mount.nfs || true + ;; +esac -- cgit v1.2.3