Changeset 7448e1b for debian/prerm


Ignore:
Timestamp:
2007-10-22T22:39:46Z (12 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/prerm

    r3933853 r7448e1b  
    22
    33if [ "$1" = "upgrade" ]; then
    4         ## To prevent the help function from breaking in currently running BitlBee processes
    5         rm -f /usr/share/bitlbee/help.txt
     4        ## To prevent the help function from breaking in currently running
     5        ## BitlBee processes. Have to do it like this because dpkg-reconfigure
     6        ## looks a lot like an upgrade and we don't want to lose help.txt...
     7        if [ -e /usr/share/bitlbee/help.txt ]; then
     8                rm -f /usr/share/bitlbee/help.upgrading
     9                mv /usr/share/bitlbee/help.txt /usr/share/bitlbee/help.upgrading
     10        fi
    611else
    712        /etc/init.d/bitlbee stop || exit 0
Note: See TracChangeset for help on using the changeset viewer.