config is in xymon-client 4.3.25-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 38 39 40 41 | #!/bin/sh
CONFIGFILE=/etc/default/xymon-client
set -e
. /usr/share/debconf/confmodule
if [ -e $CONFIGFILE ]; then
. $CONFIGFILE || true
fi
# if there is no value configured, look for debconf answers
if [ -z "$HOBBITSERVERS" ] ; then
db_get hobbit-client/HOBBITSERVERS
HOBBITSERVERS="$RET"
fi
# still nothing? set a default
if [ -z "$HOBBITSERVERS" ] ; then
HOBBITSERVERS="127.0.0.1"
fi
# in any case, store the value in debconf
db_set hobbit-client/HOBBITSERVERS "$HOBBITSERVERS"
if [ -z "$CLIENTHOSTNAME" ] ; then
db_get hobbit-client/CLIENTHOSTNAME
CLIENTHOSTNAME="$RET"
fi
if [ -z "$CLIENTHOSTNAME" ] ; then
CLIENTHOSTNAME="`hostname -f 2> /dev/null || hostname`"
fi
db_set hobbit-client/CLIENTHOSTNAME "$CLIENTHOSTNAME"
db_input high hobbit-client/HOBBITSERVERS || true
db_input medium hobbit-client/CLIENTHOSTNAME || true
if [ "$2" ] && dpkg --compare-versions "$2" lt "4.3.7"; then
db_input medium hobbit-client/automatic-xymon-migration || true
fi
db_go || true
|