From 7e2dfc788aa3dcaf724219d9689fb4db1a0d72a0 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Fri, 15 Jan 2010 13:46:30 +0100 Subject: [PATCH] Debian purge removes log + services enabled links --- debian/pazpar2.postrm | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 debian/pazpar2.postrm 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 -- 1.7.10.4