This file is indexed.

preinst is in cdebconf 0.158ubuntu1.

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
#!/bin/sh
set -e

debconfdir="/var/cache/debconf"
cdebconfdir="/var/lib/cdebconf"
if [ "$DEBCONF_USE_CDEBCONF" -a -f $debconfdir/templates.dat -a ! -f $cdebconfdir/templates.dat ]; then

 mkdir -p $cdebconfdir

 cp $debconfdir/config.dat    $debconfdir/config.dat.bak
 cp $debconfdir/passwords.dat $debconfdir/passwords.dat.bak
 cp $debconfdir/templates.dat $debconfdir/templates.dat.bak

 mv $debconfdir/config.dat    $cdebconfdir/questions.dat
 mv $debconfdir/passwords.dat $cdebconfdir/passwords.dat
 mv $debconfdir/templates.dat $cdebconfdir/templates.dat

 ln -s $cdebconfdir/questions.dat $debconfdir/config.dat
 ln -s $cdebconfdir/passwords.dat $debconfdir/passwords.dat
 ln -s $cdebconfdir/templates.dat $debconfdir/templates.dat

fi