Changeset fcd5003 for debian/postinst


Ignore:
Timestamp:
2008-03-23T21:53:53Z (13 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
58a1449
Parents:
dd14ecc
Message:

Some Debian package fixes. If nothing else comes up, this will be 1.2-2.
(Not sure if I will roll back the non-Debian changes...)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • debian/postinst

    rdd14ecc rfcd5003  
    1414BITLBEE_DISABLED=0
    1515BITLBEE_UPGRADE_DONT_RESTART=0
    16 [ -r /etc/default/bitlbee ] && source /etc/default/bitlbee
     16[ -r /etc/default/bitlbee ] && . /etc/default/bitlbee
    1717
    18 if [ "$BITLBEE_DISABLED" = "0" ] && expr "$2" : '0\..*' > /dev/null || expr "$2" : '1\.0\..*' > /dev/null; then
    19         ## In case it's still there (if we're upgrading right now)
     18if [ "$BITLBEE_DISABLED" = "0" ] && type update-inetd > /dev/null 2> /dev/null &&
     19   ( expr "$2" : '0\..*' > /dev/null || expr "$2" : '1\.0\..*' > /dev/null ); then
     20        ## Make sure the inetd entry is gone (can still be there from a
     21        ## previous version.
    2022        update-inetd --remove '.*/usr/sbin/bitlbee'
    2123        if grep -q /usr/sbin/bitlbee /etc/inetd.conf 2> /dev/null; then
     
    2426                # emergency hack doesn't:
    2527                perl -pi -e 's:^[^#].*/usr/sbin/bitlbee$:## Now using daemon mode\: # $&:' /etc/inetd.conf
    26                 killall -HUP inetd
     28                killall -HUP inetd || true
    2729        fi
    2830fi
Note: See TracChangeset for help on using the changeset viewer.