]> git.decadent.org.uk Git - nfs-utils.git/commitdiff
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 212715d208e4d552e4dcbfdce71edc8799d2a89c..e243a7a8d94d161b3e484445208b5908b7364754 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 c6d2a7208f9a35cdad089a0d10093633fbae87ea..46e620429f9af1ada2df71aabdd29f46c406daa0 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