This file is indexed.

config is in sbnc 1.3.9-3.

This file is a maintainer script. It is executed when installing (*inst) or removing (*rm) the package.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#! /bin/sh

set -e

. /usr/share/debconf/confmodule

if [ -f /etc/default/sbnc ] ; then
	AUTOSTART_SBNC=0
	. /etc/default/sbnc
	if [ "$AUTOSTART_SBNC" = "1" ] ; then
		db_set sbnc/start_daemon true
	else
		db_set sbnc/start_daemon false
	fi
fi

if [ -f /etc/sbnc/sbnc.conf ] ; then
	HOST=$(grep system.ip /etc/sbnc/sbnc.conf|cut -d"=" -f2)
	if [ "X$HOST" = "X" ] ; then
		HOST="0.0.0.0"
	fi
	db_set sbnc/host $HOST

	PORT=$(grep system.port /etc/sbnc/sbnc.conf|cut -d"=" -f2)
	if [ "X$PORT" = "X" ] ; then
		PORT="9000"
	fi
	db_set sbnc/port $PORT
fi


db_input medium sbnc/start_daemon || true
db_input medium sbnc/host || true
db_input medium sbnc/port || true

if [ ! -d /var/lib/sbnc/users ] ; then
	db_input high sbnc/username || true
	db_input high sbnc/password || true
else
	db_set sbnc/password ""
fi

db_go



exit 0