From: Steve Langasek Date: Sat, 1 Feb 2014 16:56:26 +0000 (-0500) Subject: Tweak nfs-common preinst to not remove nfs state files except on package removal... X-Git-Tag: debian/1%1.2.8-6~3 X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=121a57f4f3d913f3fa9e21b8f95df06f3957a31c;p=nfs-utils.git Tweak nfs-common preinst to not remove nfs state files except on package removal (i.e., these should not be removed when the package is deconfigured temporarily). --- diff --git a/debian/changelog b/debian/changelog index 212715d..e243a7a 100644 --- a/debian/changelog +++ b/debian/changelog @@ -10,6 +10,9 @@ nfs-utils (1:1.2.8-6) UNRELEASED; urgency=medium anyway). Closes: #510528. * Fix obsolete invocations of update-rc.d by switching nfs-common to use dh_installinit. Closes: #736059. + * Tweak nfs-common preinst to not remove nfs state files except on package + removal (i.e., these should not be removed when the package is + deconfigured temporarily). -- Steve Langasek Mon, 13 Jan 2014 22:19:43 +0000 diff --git a/debian/nfs-common.prerm b/debian/nfs-common.prerm index c6d2a72..46e6204 100644 --- a/debian/nfs-common.prerm +++ b/debian/nfs-common.prerm @@ -4,11 +4,9 @@ set -e #DEBHELPER# -if [ "$1" != upgrade ] +if [ "$1" = remove ] then rm -f /var/lib/nfs/sm/* \ /var/lib/nfs/sm.bak/* \ /var/lib/nfs/state fi - -exit 0