From 4c0388134ff88b72e343bd07013554480c2a4ef7 Mon Sep 17 00:00:00 2001 From: Wilmer van der Gaast Date: Sat, 5 Jun 2010 17:39:58 +0100 Subject: Remaining fixes: All looks good now, apt and dpkg seem to do the right thing with the -common transition, etc. --- debian/bitlbee.prerm | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 debian/bitlbee.prerm (limited to 'debian/bitlbee.prerm') diff --git a/debian/bitlbee.prerm b/debian/bitlbee.prerm new file mode 100644 index 00000000..687c2cc1 --- /dev/null +++ b/debian/bitlbee.prerm @@ -0,0 +1,17 @@ +#!/bin/sh -e + +if [ "$1" = "upgrade" ]; then + ## To prevent the help function from breaking in currently running + ## BitlBee processes. Have to do it like this because dpkg-reconfigure + ## looks a lot like an upgrade and we don't want to lose help.txt... + if [ -e /usr/share/bitlbee/help.txt ]; then + rm -f /usr/share/bitlbee/help.upgrading + mv /usr/share/bitlbee/help.txt /usr/share/bitlbee/help.upgrading + fi +else + if which invoke-rc.d >/dev/null 2>&1; then + invoke-rc.d bitlbee stop || exit 0 + else + /etc/init.d/bitlbee stop || exit 0 + fi +fi -- cgit v1.2.3