From 121a57f4f3d913f3fa9e21b8f95df06f3957a31c Mon Sep 17 00:00:00 2001 From: Steve Langasek Date: Sat, 1 Feb 2014 11:56:26 -0500 Subject: [PATCH] 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). --- debian/changelog | 3 +++ debian/nfs-common.prerm | 4 +--- 2 files changed, 4 insertions(+), 3 deletions(-) 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 -- 2.39.2