X-Git-Url: https://git.decadent.org.uk/gitweb/?p=nfs-utils.git;a=blobdiff_plain;f=debian%2Fnfs-common.postrm;h=c7af6431cb80c97840e89809c55c8bd4d84e7d15;hp=005c92843d3777d293763279deeb3380372938dd;hb=94685afe49d3b0c8858efb0d1f1d1ebce430e12f;hpb=e7c106f6008ab11558e595585fb72872b21ae624 diff --git a/debian/nfs-common.postrm b/debian/nfs-common.postrm old mode 100755 new mode 100644 index 005c928..c7af643 --- a/debian/nfs-common.postrm +++ b/debian/nfs-common.postrm @@ -6,8 +6,21 @@ case "$1" in purge) update-rc.d nfs-common remove >/dev/null + for FILE in /etc/default/nfs-common /etc/idmapd.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 /var/lib/nfs/state \ /var/lib/nfs/sm/* \ /var/lib/nfs/sm.bak/* + + dpkg-statoverride --remove /sbin/mount.nfs ;; esac