config is in openvas-server 2.0.3-6.
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 | #!/bin/sh -e
# Only ask debconf questions if no certificate is present
if [ ! -f /var/lib/openvas/CA/cacert.pem ] || [ ! -f /var/lib/openvas/CA/servercert.pem ]; then
. /usr/share/debconf/confmodule
db_input low openvas-server/certificate || true
# TODO: All these fields (specially numeric fields should be
# reviewed to make sure that the data is sane)
# Numeric:
db_input medium openvas-server/califetime || true
db_input medium openvas-server/srvlifetime || true
# Set a default
if [ ! -z "$LANG" ]; then
DC=`echo $LANG | sed -n 's/^..*_\(..\)$/\1/p'`
fi
[ -n "$DC" ] && db_set openvas-server/country $DC
# Two letter code:
db_input medium openvas-server/country || true
# Free text: (i.e. no validation needed) but might need
# to be limited to a given size
db_input medium openvas-server/province || true
db_input medium openvas-server/location || true
db_input medium openvas-server/organization || true
db_go
fi
exit 0
|