Changeset 25dfb16 for debian/postinst


Ignore:
Timestamp:
2009-06-07T20:19:25Z (16 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
0c41177
Parents:
5916995
Message:

Forgot to commit before starting to work on the second item, so here's a
monster commit. :-)

  • Removing code that edits bitlbee.conf from postinst (and chown code in the init script), it's not really necessary anymore; bitlbee may only still run as root if the admin doesn't read conffile diffs. (Closes: #514572)
  • No longer overwriting port number info in /etc/default/bitlbee with what's in debconf. (Closes: #514148)
  • Added notes about the above two changes to bitlbee.conf.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • debian/postinst

    r5916995 r25dfb16  
    3333## /etc/default/bitlbee: Auto-generated/updated script.
    3434##
    35 ## Don't edit this line, use dpkg-reconfigure bitlbee
     35## If running in (fork)daemon mode, listen on this TCP port.
    3636BITLBEE_PORT="$PORT"
    3737
     
    6161        else
    6262                mv /usr/share/bitlbee/help.upgrading /usr/share/bitlbee/help.txt
    63         fi
    64 fi
    65 
    66 if ! 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.'
    7063        fi
    7164fi
Note: See TracChangeset for help on using the changeset viewer.