diff options
-rw-r--r-- | debian/changelog | 8 | ||||
-rwxr-xr-x | debian/postinst | 12 | ||||
-rwxr-xr-x | debian/prerm | 6 |
3 files changed, 23 insertions, 3 deletions
diff --git a/debian/changelog b/debian/changelog index 897cc5fa..fdff2d80 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,11 @@ +bitlbee (1.2.1-1.1) unstable; urgency=low + + * Non-Maintainer Upload + * Use invoke-rc.d as per policy. (Closes: #492637) [Thanks to Matt + Kraii] + + -- Don Armstrong <don@debian.org> Wed, 06 Aug 2008 06:57:18 -0700 + bitlbee (1.2.1-1) unstable; urgency=low * New upstream release. 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 diff --git a/debian/prerm b/debian/prerm index 5272e273..8426ab3a 100755 --- a/debian/prerm +++ b/debian/prerm @@ -9,5 +9,9 @@ if [ "$1" = "upgrade" ]; then mv /usr/share/bitlbee/help.txt /usr/share/bitlbee/help.upgrading fi else - /etc/init.d/bitlbee stop || exit 0 + if which invoke-rc.d >/dev/null 2>&1; then + invoke-rc.d bitblee stop || exit 0 + else + /etc/init.d/bitlbee stop || exit 0 + fi fi |