This file is indexed.

config is in openvas-server 2.0.3-4.

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    openvasd/certificate  || true
# TODO:  All these fields (specially numeric fields should be
# reviewed to make sure that the data is sane)
# Numeric:
	db_input medium openvasd/califetime   || true
	db_input medium openvasd/srvlifetime  || true
# Set a default
	if [ ! -z "$LANG" ]; then
		DC=`echo $LANG | sed -n 's/^..*_\(..\)$/\1/p'`
	fi
	[ -n "$DC" ] && db_set   openvasd/country $DC
# Two letter code:
	db_input medium openvasd/country      || true
# Free text: (i.e. no validation needed) but might need
# to be limited to a given size
	db_input medium openvasd/province     || true
	db_input medium openvasd/location     || true
	db_input medium openvasd/organization || true
	db_go
fi



exit 0