File: cacti.config

package info (click to toggle)
cacti 0.8.6i-3
  • links: PTS
  • area: main
  • in suites: etch-m68k
  • size: 4,744 kB
  • ctags: 8,967
  • sloc: php: 39,760; sql: 2,306; xml: 678; sh: 487; perl: 133; makefile: 68
file content (31 lines) | stat: -rw-r--r-- 708 bytes parent folder | download | duplicates (2)
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
#!/bin/sh

action=$1
version=$2

## Source debconf library
. /usr/share/debconf/confmodule
# source dbconfig-common stuff
. /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"
dbc_go cacti $@

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

#
# print a warning, if we're upgrading from 0.6.x versions
#
if [ -n "$version" ]; then
	dpkg --compare-versions "$version" lt "0.8.0-1"
	if [ $? -eq 0 ]; then
		db_input critical cacti/upgrade_warning || true
	fi
fi

db_go || true

exit 0