]> git.decadent.org.uk Git - nfs-utils.git/blobdiff - debian/nfs-common.postrm
Imported Debian patch 1.0.7-18
[nfs-utils.git] / debian / nfs-common.postrm
index 005c92843d3777d293763279deeb3380372938dd..6783bcd7b2cd62fce4af5a6a723a038676326817 100755 (executable)
@@ -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/*