From: Adam Dickmeiss Date: Fri, 15 Jan 2010 12:46:30 +0000 (+0100) Subject: Debian purge removes log + services enabled links X-Git-Tag: v1.3.0~7 X-Git-Url: http://sru.miketaylor.org.uk/cgi-bin?a=commitdiff_plain;h=7e2dfc788aa3dcaf724219d9689fb4db1a0d72a0;p=pazpar2-moved-to-github.git Debian purge removes log + services enabled links --- diff --git a/debian/pazpar2.postrm b/debian/pazpar2.postrm new file mode 100644 index 0000000..911bac3 --- /dev/null +++ b/debian/pazpar2.postrm @@ -0,0 +1,11 @@ +#!/bin/sh +set -e + +if [ "$1" = "purge" ] ; then + update-rc.d pazpar2 remove >/dev/null || exit $? + rm -f /var/log/pazpar2.log + for f in /etc/pazpar2/services-enabled/*; do + [ -L "$f" ] && rm -f "$f" + done +fi +exit 0