Changeset fcd5003 for debian/postinst
- Timestamp:
- 2008-03-23T21:53:53Z (17 years ago)
- Branches:
- master
- Children:
- 58a1449
- Parents:
- dd14ecc
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
debian/postinst
rdd14ecc rfcd5003 14 14 BITLBEE_DISABLED=0 15 15 BITLBEE_UPGRADE_DONT_RESTART=0 16 [ -r /etc/default/bitlbee ] && source/etc/default/bitlbee16 [ -r /etc/default/bitlbee ] && . /etc/default/bitlbee 17 17 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) 18 if [ "$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. 20 22 update-inetd --remove '.*/usr/sbin/bitlbee' 21 23 if grep -q /usr/sbin/bitlbee /etc/inetd.conf 2> /dev/null; then … … 24 26 # emergency hack doesn't: 25 27 perl -pi -e 's:^[^#].*/usr/sbin/bitlbee$:## Now using daemon mode\: # $&:' /etc/inetd.conf 26 killall -HUP inetd 28 killall -HUP inetd || true 27 29 fi 28 30 fi
Note: See TracChangeset
for help on using the changeset viewer.