X-Git-Url: https://git.decadent.org.uk/gitweb/?p=nfs-utils.git;a=blobdiff_plain;f=debian%2Fnfs-common.postrm;h=9abe8c202c04893585baf90dc457eeeada61636c;hp=267bb7a05a2b2b3354de697f2015df5eb8cf33f7;hb=e33bb1e6e294315dfdc6ac665772e029ebbfced8;hpb=4f7fc41f6324daad94c37e9327567d27a0d50afe diff --git a/debian/nfs-common.postrm b/debian/nfs-common.postrm index 267bb7a..9abe8c2 100644 --- a/debian/nfs-common.postrm +++ b/debian/nfs-common.postrm @@ -1,11 +1,11 @@ #!/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; do # Taken from the ucf example postrm for ext in '~' '%' .bak .dpkg-tmp .dpkg-new .dpkg-old .dpkg-dist; do @@ -20,5 +20,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