Tweak nfs-common preinst to not remove nfs state files except on package removal...
authorSteve Langasek <steve.langasek@canonical.com>
Sat, 1 Feb 2014 16:56:26 +0000 (11:56 -0500)
committerSteve Langasek <steve.langasek@canonical.com>
Sat, 1 Feb 2014 16:56:26 +0000 (11:56 -0500)
debian/changelog
debian/nfs-common.prerm

index 212715d..e243a7a 100644 (file)
@@ -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 <vorlon@debian.org>  Mon, 13 Jan 2014 22:19:43 +0000
 
index c6d2a72..46e6204 100644 (file)
@@ -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