Imported Debian patch 0.8.7g-2.1
[debian/cacti] / debian / cacti.config
1 #!/bin/sh
2
3 set -e
4
5 action=$1
6 version=$2
7
8 ## Source debconf library
9 . /usr/share/debconf/confmodule
10 # source dbconfig-common stuff
11 if [ -f /usr/share/dbconfig-common/dpkg/config.mysql ]; then
12         . /usr/share/dbconfig-common/dpkg/config.mysql 
13         dbc_first_version="0.8.6g-3"
14         dbc_load_include="php:/etc/cacti/debian.php"
15         dbc_load_include_args="--dbname=database_default --dbpass=database_password --dbuser=database_username --dbserver=database_hostname"
16         dbc_go cacti $@
17 fi
18
19 # which web-server should I use?
20 db_input high cacti/webserver || true
21
22 db_go || true
23
24 exit 0
25