Changeset 7448e1b for debian/postinst


Ignore:
Timestamp:
2007-10-22T22:39:46Z (17 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
5e2615a
Parents:
3933853
Message:

debian/ specific: Changed "rm help.txt at upgrade" hack to not remove the
file but rename it and rename it back in postinst in case we were doing
a dpkg-reconfigure instead of an upgrade.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • debian/postinst

    r3933853 r7448e1b  
    4646db_stop
    4747
     48## Restore the helpfile in case we weren't upgrading but just reconfiguring:
     49if [ -e /usr/share/bitlbee/help.upgrading ]; then
     50        if [ -e /usr/share/bitlbee/help.txt ]; then
     51                rm -f /usr/share/bitlbee/help.upgrading
     52        else
     53                mv /usr/share/bitlbee/help.upgrading /usr/share/bitlbee/help.txt
     54        fi
     55fi
     56
    4857if [ -n "$2" -a "$BITLBEE_UPGRADE_DONT_RESTART" != "1" ]; then
    4958        /etc/init.d/bitlbee restart
Note: See TracChangeset for help on using the changeset viewer.