Last change
on this file since f9110b4 was
25dfb16,
checked in by Wilmer van der Gaast <wilmer@…>, at 2009-06-07T20:19:25Z
|
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.
|
-
Property mode set to
100755
|
File size:
523 bytes
|
Rev | Line | |
---|
[19a8088] | 1 | #!/bin/sh -e |
---|
| 2 | |
---|
| 3 | . /usr/share/debconf/confmodule |
---|
[25dfb16] | 4 | [ -f /etc/default/bitlbee ] && . /etc/default/bitlbee |
---|
[19a8088] | 5 | |
---|
| 6 | db_title BitlBee |
---|
| 7 | |
---|
[25dfb16] | 8 | if [ -n "$BITLBEE_PORT" ]; then |
---|
| 9 | db_set bitlbee/serveport "$BITLBEE_PORT" |
---|
| 10 | else |
---|
| 11 | db_get bitlbee/serveport |
---|
| 12 | if [ "$RET" = "stillhavetoask" ]; then |
---|
| 13 | listens=$(netstat -ltn | awk '{print $4}') |
---|
| 14 | for port in 6667 6666 6668 6669; do |
---|
| 15 | if [ $(expr "$listens " : ".*:$port\s") = "0" ]; then |
---|
| 16 | break |
---|
| 17 | fi |
---|
| 18 | done |
---|
| 19 | db_set bitlbee/serveport $port; |
---|
| 20 | fi |
---|
[19a8088] | 21 | fi |
---|
| 22 | |
---|
| 23 | if db_input medium bitlbee/serveport; then |
---|
| 24 | db_go; |
---|
| 25 | fi |
---|
Note: See
TracBrowser
for help on using the repository browser.