X-Git-Url: https://git.decadent.org.uk/gitweb/?p=nfs-utils.git;a=blobdiff_plain;f=debian%2Fnfs-common.prerm;h=08e0ca9112ee919a18a839b20856e00fd88c14b6;hp=77e3af8b36dc18f25963354a56c31ac195e8ce59;hb=4dabf51e41ec81982767607af82c701660fae9ee;hpb=a5ca7b464d6acc8826473be76415043c7c8d85dd diff --git a/debian/nfs-common.prerm b/debian/nfs-common.prerm old mode 100755 new mode 100644 index 77e3af8..08e0ca9 --- a/debian/nfs-common.prerm +++ b/debian/nfs-common.prerm @@ -1,7 +1,21 @@ #!/bin/sh +set -e + #DEBHELPER# -[ -x /etc/init.d/nfs-common ] && /etc/init.d/nfs-common stop +case "$1" in + remove|purge) + [ -x /etc/init.d/nfs-common ] && + invoke-rc.d nfs-common stop + ;; +esac + +if [ "$1" != upgrade ] +then + rm -f /var/lib/nfs/sm/* \ + /var/lib/nfs/sm.bak/* \ + /var/lib/nfs/state +fi exit 0