From 59c84c20ad924fedb9106599b96d2c48ff1cc316 Mon Sep 17 00:00:00 2001 From: Wilmer van der Gaast Date: Tue, 12 Aug 2008 00:25:40 +0100 Subject: 1.2.1-1.1 (NMU by Don Armstrong). --- debian/postinst | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'debian/postinst') 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 -- cgit v1.2.3