This file is indexed.

config is in cacti 1.1.38+ds1-1.

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
#!/bin/sh

set -e

action=$1
version=$2

## Source debconf library
. /usr/share/debconf/confmodule
# source dbconfig-common stuff
if [ -f /usr/share/dbconfig-common/dpkg/config.mysql ]; then
	. /usr/share/dbconfig-common/dpkg/config.mysql 
	dbc_first_version="0.8.6g-3"
	dbc_load_include="php:/etc/cacti/debian.php"
	dbc_load_include_args="--dbname=database_default --dbpass=database_password --dbuser=database_username --dbserver=database_hostname --dbport=database_port"
	dbc_go cacti $@
fi

if [ "$version" != "" ] ; then
    webservers="None"
    # Determine if one of the supported webservers is actually configured for cacti
    # Both have old style and new style configuration names (in that order)
    if [ -e /etc/apache2/conf.d/cacti.conf -o -e /etc/apache2/conf-enabled/cacti.conf ] ; then
	webservers="apache2"
    fi
    if [ -e /etc/lighttpd/conf-enabled/cacti.conf -o -e /etc/lighttpd/conf-enabled/20-cacti.conf ] ; then
	webservers="lighttpd"
    fi
    db_set cacti/webserver "$webservers"
fi

# which web-server should I use?
db_input high cacti/webserver || true

db_go || true

exit 0