This file is indexed.

preinst is in apt-cacher-ng 0.9.1-1ubuntu1.

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

LASTVERSION=0.7.19-2~

NAME=apt-cacher-ng
CFG=/etc/$NAME

case "$1" in
   install|upgrade)
      if dpkg --compare-versions "$2" le "$LASTVERSION"; then
         for cfn in backends_debvol backends_ubuntu backends_debian ; do
            mkdir -p $CFG/oldconffiles
            mv -f $CFG/$cfn $CFG/oldconffiles 2>/dev/null ||:
         done
      fi
esac