config is in icinga-web 1.10.0-2.
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 48 49 50 51 52 53 | #!/bin/bash
set -e
#set -x
. /usr/share/debconf/confmodule
if [ -f /usr/share/dbconfig-common/dpkg/config ]; then
dbc_dbtypes="mysql, pgsql"
dbc_dbuser="icinga_web"
dbc_dbname="icinga_web"
dbc_authmethod_user="password"
. /usr/share/dbconfig-common/dpkg/config
dbc_go icinga-web $@
fi
###
# Configure the root password for icinga-web
# only when dbconfig-common is used...
###
db_get icinga-web/dbconfig-install || true
dbconfig_there="$RET"
db_fget icinga-web/rootpassword seen || true
rootpassword_seen="$RET"
if [ "$1" = "reconfigure" ]; then
rootpassword_seen=false
fi
if [ "$dbconfig_there" = "true" ] && [ "$rootpassword_seen" != "true" ]; then
passwordsmatch=no
while [ "$passwordsmatch" != "yes" ]; do
# enter password
db_input high icinga-web/rootpassword || true
db_input high icinga-web/rootpassword-repeat || true
db_go || true
# verify input
db_get icinga-web/rootpassword
p1="$RET"
db_get icinga-web/rootpassword-repeat
p2="$RET"
if [ "$p1" = "$p2" ]; then
passwordsmatch="yes"
db_fset icinga-web/rootpassword changed true
else
db_fset icinga-web/rootpassword seen false
db_fset icinga-web/rootpassword-repeat seen false
db_fset icinga-web/rootpassword-mismatch seen false
db_input critical icinga-web/rootpassword-mismatch || true
fi
done
fi
db_go || true
|