diff options
author | dequis <dx@dxzone.com.ar> | 2016-09-21 00:02:29 -0300 |
---|---|---|
committer | dequis <dx@dxzone.com.ar> | 2016-09-21 00:02:29 -0300 |
commit | 35401cd0e5ffdbee0ccfe69a307162c7291c6649 (patch) | |
tree | 5d26a7f0a04a3c08756948fea0090f1ad0382b4e | |
parent | 028ca92f3a36fed8ebb0a6507e64a50938049e53 (diff) |
debian: check if sysv script exists before calling invoke-rc.d
In the postinst script, the part that isn't handled by debhelper and i'm
not really sure why i'm keeping.
Thanks Raku for reporting/testing this.
-rw-r--r-- | debian/bitlbee-common.postinst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/debian/bitlbee-common.postinst b/debian/bitlbee-common.postinst index de814011..e0e371d8 100644 --- a/debian/bitlbee-common.postinst +++ b/debian/bitlbee-common.postinst @@ -63,7 +63,7 @@ if [ -e /usr/share/bitlbee/help.upgrading ]; then fi fi -if [ "$BITLBEE_UPGRADE_DONT_RESTART" != "1" -a -n "$2" ]; then +if [ "$BITLBEE_UPGRADE_DONT_RESTART" != "1" -a -n "$2" -a -x "/etc/init.d/bitlbee" ]; then invoke-rc.d bitlbee restart fi |