aboutsummaryrefslogtreecommitdiffstats
path: root/debian/config
blob: 3a04813da661afccddaacebdebd3a2d633d299dd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh -e

. /usr/share/debconf/confmodule

db_title BitlBee

db_get bitlbee/serveport
if [ "$RET" = "stillhavetoask" ]; then
	if netstat -ltn | grep ':6667' 2> /dev/null > /dev/null; then
		port=6668;
	else
		port=6667;
	fi
	db_set bitlbee/serveport $port;
fi

if db_input medium bitlbee/serveport; then
	db_go;
fi