From: Jonathan McDowell <noodles@earth.li>
Date: Mon, 19 Jun 2006 20:37:12 +0000 (+0000)
Subject: Cleanup log file on package purge (Debian bug #338516)
X-Git-Url: https://git.sommitrealweird.co.uk/onak.git/commitdiff_plain/4684b822bc8582622c7ea849aa61665af48a695a

Cleanup log file on package purge (Debian bug #338516)
As per Debian bug #338516 we should remove our log file upon package
purge. Do so.
---

diff --git a/debian/postrm b/debian/postrm
index c8ef717..da170ac 100644
--- a/debian/postrm
+++ b/debian/postrm
@@ -8,4 +8,6 @@ if [ "$1" = "purge" ]; then
             dpkg-statoverride --remove $i
 	done
     fi
+
+    rm -f /var/log/onak.log{,.1,.*.gz}
 fi