This file is indexed.

preinst is in libmono-security4.0-cil 4.6.2.7+dfsg-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
#!/bin/sh -e

# Move old CA cert store to new location in /etc, if it exists in /usr

OLD_CERTDIR=/usr/share/.mono
NEW_CERTDIR=/etc/mono/certstore

if [ "$1" = "upgrade" -o "$1" = "install" ] ; then
   if [ -d "$OLD_CERTDIR" -a ! -L "$OLD_CERTDIR" ] ; then
     echo "Found cert store in old location, moving to $NEW_CERTDIR"
     mkdir -p $NEW_CERTDIR/
     if [ `ls -A $OLD_CERTDIR/` ]; then mv $OLD_CERTDIR/* $NEW_CERTDIR/; fi
     rm -fr $OLD_CERTDIR/
   fi
fi