This file is indexed.

config is in uprecords-cgi 1:0.3.17-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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#! /bin/sh

set -e

. /usr/share/debconf/confmodule

db_version 2.0
db_capb 'backup'
CAPB=$RET

if [ -f /etc/uprecords-cgi/uprecords.conf ]; then
	LAYOUT=`grep '^LAYOUT=' /etc/uprecords-cgi/uprecords.conf |
	    head -1 |
	    sed -e 's/^LAYOUT=//'`
	MAXENTRIES=`grep '^SHOW_MAX=' /etc/uprecords-cgi/uprecords.conf |
	    head -1 |
	    sed -e 's/^SHOW_MAX=//'`
	if [ -n "$LAYOUT" ]; then db_set 'uprecords-cgi/layout' $LAYOUT; fi
	if [ -n "$MAXENTRIES" ]; then
		db_set 'uprecords-cgi/maxentries' $MAXENTRIES
	fi
fi

STATE=1
while [ "$STATE" != 0 -a "$STATE" != 3 ]; do
	case "$STATE" in
	1)
		db_input medium 'uprecords-cgi/layout' || true
	;;
	2)
		db_input medium 'uprecords-cgi/maxentries' || true
	;;
	esac

	if db_go; then
		STATE=$(($STATE + 1))
	else
		STATE=$(($STATE - 1))
	fi
done

hostname=`hostname --fqdn`

if [ -z "$hostname" ]; then
	hostname='localhost'
fi

db_subst 'uprecords-cgi/install_note' hostname $hostname
db_input low 'uprecords-cgi/install_note' || true
db_go || true

db_stop