X-Git-Url: https://git.decadent.org.uk/gitweb/?p=nfs-utils.git;a=blobdiff_plain;f=debian%2Fnfs-common.postrm;h=1f8f1ebd506495c3b950f8cd234b16877ab8e615;hp=6783bcd7b2cd62fce4af5a6a723a038676326817;hb=5af2f5885d1152218ffa81995e6b25ee3dc8f71a;hpb=1408e610ac2db753543a546c4312b2eb6799f044 diff --git a/debian/nfs-common.postrm b/debian/nfs-common.postrm old mode 100755 new mode 100644 index 6783bcd..1f8f1eb --- a/debian/nfs-common.postrm +++ b/debian/nfs-common.postrm @@ -1,12 +1,14 @@ #!/bin/sh +set -e + #DEBHELPER# 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 + 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 @@ -20,5 +22,7 @@ case "$1" in rm -f /var/lib/nfs/state \ /var/lib/nfs/sm/* \ /var/lib/nfs/sm.bak/* + + dpkg-statoverride --remove /sbin/mount.nfs || true ;; esac