5
5
if [ ! -f /var/lib/openvas/CA/cacert.pem ] || [ ! -f /var/lib/openvas/CA/servercert.pem ]; then
6
6
. /usr/share/debconf/confmodule
8
db_input low openvasd/certificate || true
8
db_input low openvas-server/certificate || true
9
9
# TODO: All these fields (specially numeric fields should be
10
10
# reviewed to make sure that the data is sane)
12
db_input medium openvasd/califetime || true
13
db_input medium openvasd/srvlifetime || true
12
db_input medium openvas-server/califetime || true
13
db_input medium openvas-server/srvlifetime || true
15
15
if [ ! -z "$LANG" ]; then
16
16
DC=`echo $LANG | sed -n 's/^..*_\(..\)$/\1/p'`
18
[ -n "$DC" ] && db_set openvasd/country $DC
18
[ -n "$DC" ] && db_set openvas-server/country $DC
20
db_input medium openvasd/country || true
20
db_input medium openvas-server/country || true
21
21
# Free text: (i.e. no validation needed) but might need
22
22
# to be limited to a given size
23
db_input medium openvasd/province || true
24
db_input medium openvasd/location || true
25
db_input medium openvasd/organization || true
23
db_input medium openvas-server/province || true
24
db_input medium openvas-server/location || true
25
db_input medium openvas-server/organization || true