aboutsummaryrefslogtreecommitdiffstats
path: root/debian/postinst
diff options
context:
space:
mode:
authorWilmer van der Gaast <wilmer@gaast.net>2008-08-12 00:25:40 +0100
committerWilmer van der Gaast <wilmer@gaast.net>2008-08-12 00:25:40 +0100
commit59c84c20ad924fedb9106599b96d2c48ff1cc316 (patch)
treee962c13554d208de97a73690ab00e18a3f6e66e8 /debian/postinst
parent45b9d3e776024bdbda3edddaf85d130367cdeb6e (diff)
1.2.1-1.1 (NMU by Don Armstrong).1.2.1-1.1
Diffstat (limited to 'debian/postinst')
-rwxr-xr-xdebian/postinst12
1 files changed, 10 insertions, 2 deletions
diff --git a/debian/postinst b/debian/postinst
index 80249bfe..1363bfb6 100755
--- a/debian/postinst
+++ b/debian/postinst
@@ -64,7 +64,11 @@ if [ -e /usr/share/bitlbee/help.upgrading ]; then
fi
if [ -n "$2" -a "$BITLBEE_UPGRADE_DONT_RESTART" != "1" ]; then
- /etc/init.d/bitlbee restart
+ if which invoke-rc.d >/dev/null 2>&1; then
+ invoke-rc.d bitlbee restart
+ else
+ /etc/init.d/bitlbee restart
+ fi
fi
## If we're upgrading, we'll probably skip this next part
@@ -90,5 +94,9 @@ else
fi
if [ -z "$2" ]; then
- /etc/init.d/bitlbee start
+ if which invoke-rc.d >/dev/null 2>&1; then
+ invoke-rc.d bitlbee start
+ else
+ /etc/init.d/bitlbee start
+ fi
fi