aboutsummaryrefslogtreecommitdiffstats
path: root/debian/bitlbee.prerm
diff options
context:
space:
mode:
authorWilmer van der Gaast <wilmer@gaast.net>2010-06-06 00:21:02 +0100
committerWilmer van der Gaast <wilmer@gaast.net>2010-06-06 00:21:02 +0100
commitb308cf9bafbdf76da73a57607b65c4763aa3057b (patch)
treec686906b479a0edd52b18a213e1d420f7343855d /debian/bitlbee.prerm
parent3ab1d317831a6c1830bb648a1a8d63a41c92f651 (diff)
parente774815bc621af90bb64ca314b84367659c5a005 (diff)
Merging libpurple branch into killerbee. It's fairly usable already, and
Debian packaging is now properly separated. This also picks up a load of stuff from mainline it seems.
Diffstat (limited to 'debian/bitlbee.prerm')
-rw-r--r--debian/bitlbee.prerm17
1 files changed, 17 insertions, 0 deletions
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