]> 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)
committerTobias Frost <tobi@coldtobi.de>
Sat, 21 Nov 2015 17:44:28 +0000 (18:44 +0100)
debian/changelog
debian/smartmontools.postrm [new file with mode: 0644]

index 470c34dbdb5ee6c0987cc48e0bb399fbd092060e..434c898f218cbe4ee4bc21ef0e83451bcd2c610a 100644 (file)
@@ -7,6 +7,7 @@ smartmontools (6.3+svn4002-2.1) 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