This file is indexed.

postinst is in debconf 1.5.51ubuntu2.

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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
#!/bin/sh
set -e

if [ -z "$DEBIAN_HAS_FRONTEND" ] && [ "$1" = configure ] && [ -n "$2" ] && \
   dpkg --compare-versions "$2" lt 1.1.0; then
	# Transition from old database format before debconf starts up.
	if dpkg --compare-versions "$2" lt 0.9.00; then
		if [ -e /var/lib/debconf/config.db -o -e /var/lib/debconf/templates.db ]; then
			/usr/share/debconf/transition_db.pl
		fi
		# This package used to add itself to apt.conf. That could result in
		# a zero-byte file, since it no longer does. Detect that and remove
		# the file.
		if [ ! -s /etc/apt/apt.conf ]; then
			rm -f /etc/apt/apt.conf
		fi
	fi
	
	# Fix up broken db's before debconf starts up.
	if dpkg --compare-versions "$2" lt 1.0.25; then
		/usr/share/debconf/fix_db.pl
	fi
	
	# configdb splits into passworded and non-passworded parts, before debconf
	# starts up. Do so only if the debconf.conf has the new databases in it.
	if dpkg --compare-versions "$2" lt 1.1.0 &&
	   perl -e 'use Debconf::Db; Debconf::Db->load; for (@ARGV) { exit 1 unless
	            Debconf::DbDriver->driver($_) }' config passwords; then
	   	# copies in only the passwords, of course
	   	debconf-copydb config passwords
		# makes a new config with only non-passwords in it
		debconf-copydb config newconfig \
			-c Name:newconfig \
			-c Driver:File \
			-c Reject-Type:password \
			-c Filename:/var/cache/debconf/newconfig.dat \
			-c Mode:644
		mv -f /var/cache/debconf/newconfig.dat /var/cache/debconf/config.dat
	fi
fi

. /usr/share/debconf/confmodule

if [ "$1" = configure ] && [ -n "$2" ] && dpkg --compare-versions "$2" lt 1.3.11; then
	# Remove old debconf database, and associated cruft in /var/lib/debconf.
	# In fact, the whole directory can go! Earlier versions of debconf in the
	# 0.9.x series kept it just in case, so make sure to delete it on upgrade
	# from any of those versions, or even older versions.
	if dpkg --compare-versions "$2" lt 0.9.50; then
		rm -rf /var/lib/debconf
	fi

	# Kill db cruft.
	if dpkg --compare-versions "$2" lt 0.9.73; then
		# It may not be present, if upgrading from long ago.
		db_unregister foo/bar || true
		db_unregister debconf/switch-to-slang || true
	fi
	if dpkg --compare-versions "$2" lt 1.3.11; then
		db_unregister debconf/showold || true
	fi

	# The Text frontend became the Readline frontend.
	if dpkg --compare-versions "$2" lt 1.0.10; then
		db_get debconf/frontend || true
		if [ "$RET" = Text ]; then
			db_set debconf/frontend Readline || true
		fi
	fi
fi


# Automatically added by dh_python2:
if which pycompile >/dev/null 2>&1; then
	pycompile -p debconf 
fi

# End automatically added section

# Automatically added by dhpython:
if which py3compile >/dev/null 2>&1; then
	py3compile -p debconf 
fi

# End automatically added section