X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;ds=sidebyside;f=debian%2Fnfs-common.postrm;h=6783bcd7b2cd62fce4af5a6a723a038676326817;hb=4f44986ea6265136beff9fe699f4ede63f463655;hp=4e904174b5370c7a1051efd8417e5960ed250710;hpb=52a03354d4f15bc9333349b366f3545acd32554d;p=nfs-utils.git diff --git a/debian/nfs-common.postrm b/debian/nfs-common.postrm index 4e90417..6783bcd 100755 --- a/debian/nfs-common.postrm +++ b/debian/nfs-common.postrm @@ -4,6 +4,21 @@ case "$1" in purge) - update-rc.d nfs-common remove >/dev/null 2>&1 + update-rc.d nfs-common remove >/dev/null + + for FILE in /etc/default/nfs-common /etc/idmapd.conf /etc/gssapi_mech.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