aboutsummaryrefslogtreecommitdiffstats
path: root/debian/bitlbee-common.prerm
diff options
context:
space:
mode:
authorWilmer van der Gaast <wilmer@gaast.net>2010-08-21 23:42:01 +0100
committerWilmer van der Gaast <wilmer@gaast.net>2010-08-21 23:42:01 +0100
commit4022b686cce05eb9a42b744335abd09d5ae7d0f0 (patch)
treefe827cdf6aef1fe7c3e9d0458848be3edda60ea1 /debian/bitlbee-common.prerm
parent327af51a28fe292cfc4a68caa086a13175a69719 (diff)
parentc00dd7117be2a5fda92d6f7d72b0e4e54fa5d615 (diff)
Merge mainline.
Diffstat (limited to 'debian/bitlbee-common.prerm')
-rw-r--r--debian/bitlbee-common.prerm13
1 files changed, 13 insertions, 0 deletions
diff --git a/debian/bitlbee-common.prerm b/debian/bitlbee-common.prerm
new file mode 100644
index 00000000..50a49bee
--- /dev/null
+++ b/debian/bitlbee-common.prerm
@@ -0,0 +1,13 @@
+#!/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
+ invoke-rc.d bitlbee stop || exit 0
+fi