]> git.proxmox.com Git - mirror_smartmontools-debian.git/commitdiff
Remove '/var/lib/smartmontools' on purge (Closes: #766145)
authorTobias Frost <tobi@coldtobi.de>
Sat, 21 Nov 2015 17:44:28 +0000 (18:44 +0100)
committerJonathan Dowland <jmtd@debian.org>
Thu, 26 Nov 2015 11:25:22 +0000 (11:25 +0000)
debian/changelog
debian/smartmontools.postrm [new file with mode: 0644]

index 06952006a3ae115a5209e27e061274d12b682ee4..788a073ac36036ebb79c27c8dd3f8f484630393c 100644 (file)
@@ -7,6 +7,7 @@ smartmontools (6.4+svn4109-2) UNRELEASED; urgency=medium
 
   [ Tobias Frost ]
   * Import patch from Helmut (see above)
+  * Remove '/var/lib/smartmontools' on purge (Closes: #766145)
 
  -- Helmut Grohne <helmut@subdivi.de>  Thu, 30 Jul 2015 01:18:49 +0200
 
diff --git a/debian/smartmontools.postrm b/debian/smartmontools.postrm
new file mode 100644 (file)
index 0000000..6483078
--- /dev/null
@@ -0,0 +1,14 @@
+#!/bin/sh
+
+case "$1" in
+  purge)
+    if [ -d /var/lib/smartmontools ] ; then
+      rm -rf  /var/lib/smartmontools
+    fi
+  ;;
+
+esac
+
+#DEBHELPER#
+
+exit 0