Changeset 379c08a for debian/postinst


Ignore:
Timestamp:
2008-03-21T00:27:24Z (16 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
a83442a
Parents:
6612cc9
Message:

Updated/Fixed Debian package.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • debian/postinst

    r6612cc9 r379c08a  
    1616[ -r /etc/default/bitlbee ] && source /etc/default/bitlbee
    1717
    18 if [ "$BITLBEE_DISABLED" = "0" ]; then
     18if [ "$BITLBEE_DISABLED" = "0" ] && expr "$2" : '0\..*' > /dev/null || expr "$2" : '1\.0\..*' > /dev/null; then
    1919        ## In case it's still there (if we're upgrading right now)
    2020        update-inetd --remove '.*/usr/sbin/bitlbee'
     21        if grep -q /usr/sbin/bitlbee /etc/inetd.conf 2> /dev/null; then
     22                # Thanks for breaking update-inetd! (bugs.debian.org/311111)
     23                # I hope that it works at least with xinetd, because this
     24                # emergency hack doesn't:
     25                perl -pi -e 's:^[^#].*/usr/sbin/bitlbee$:## Now using daemon mode\: # $&:' /etc/inetd.conf
     26                killall -HUP inetd
     27        fi
    2128fi
    2229
Note: See TracChangeset for help on using the changeset viewer.