Changeset 5d3b4e8 for debian/postinst


Ignore:
Timestamp:
2008-08-11T23:50:11Z (16 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
d301872
Parents:
59c84c2
Message:

Fixed run-by-root problem (Debian bug 494656).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • debian/postinst

    r59c84c2 r5d3b4e8  
    6464fi
    6565
     66if ! grep -qi '^User *= *' /etc/bitlbee/bitlbee.conf; then
     67        echo 'Updating configuration file, enabling User-setting...'
     68        if ! sed -i -e 's/# *User *= *.*/User = bitlbee/i' /etc/bitlbee/bitlbee.conf; then
     69                echo 'Failed! BitlBee may run as root now, please check your configs.'
     70        fi
     71fi
     72
    6673if [ -n "$2" -a "$BITLBEE_UPGRADE_DONT_RESTART" != "1" ]; then
    6774        if which invoke-rc.d >/dev/null 2>&1; then
Note: See TracChangeset for help on using the changeset viewer.