X-Git-Url: https://git.decadent.org.uk/gitweb/?p=nfs-utils.git;a=blobdiff_plain;f=debian%2Fnfs-common.postrm;h=6783bcd7b2cd62fce4af5a6a723a038676326817;hp=005c92843d3777d293763279deeb3380372938dd;hb=4f44986ea6265136beff9fe699f4ede63f463655;hpb=a844d5c56ef076c8961e7396b601e9a2bdeb546f diff --git a/debian/nfs-common.postrm b/debian/nfs-common.postrm index 005c928..6783bcd 100755 --- a/debian/nfs-common.postrm +++ b/debian/nfs-common.postrm @@ -6,6 +6,17 @@ case "$1" in purge) 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/*