X-Git-Url: https://git.decadent.org.uk/gitweb/?p=nfs-utils.git;a=blobdiff_plain;f=debian%2Fnfs-common.postrm;h=267bb7a05a2b2b3354de697f2015df5eb8cf33f7;hp=ff64e775d226d8839a31fb89ac1d8e80bb92f997;hb=582e963f4aa62c9c6957c3868d487a82385cc5a1;hpb=9c612925efdfecc400e17bba4797b813c7bd4052 diff --git a/debian/nfs-common.postrm b/debian/nfs-common.postrm old mode 100755 new mode 100644 index ff64e77..267bb7a --- a/debian/nfs-common.postrm +++ b/debian/nfs-common.postrm @@ -5,5 +5,20 @@ 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/* ;; esac