aboutsummaryrefslogtreecommitdiffstats
path: root/debian/prerm
diff options
context:
space:
mode:
Diffstat (limited to 'debian/prerm')
-rwxr-xr-xdebian/prerm8
1 files changed, 8 insertions, 0 deletions
diff --git a/debian/prerm b/debian/prerm
new file mode 100755
index 00000000..c02b13f4
--- /dev/null
+++ b/debian/prerm
@@ -0,0 +1,8 @@
+#!/bin/sh -e
+
+if [ "$1" = "upgrade" ]; then
+ ## To prevent the help function from breaking in currently running BitlBee processes
+ rm -f /usr/share/bitlbee/help.txt
+else
+ /etc/init.d/bitlbee stop || exit 0
+fi