This file is indexed.

preinst is in libapache2-mod-apparmor 2.7.102-0ubuntu3.11.

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
#!/bin/sh
# preinst script for libapache2-mod-apparmor
#
# see: dh_installdeb(1)
set -e

APP_PROFILE="usr.lib.apache2.mpm-prefork.apache2"
APP_CONFFILE="/etc/apparmor.d/$APP_PROFILE"
APP_DISABLE="/etc/apparmor.d/disable/$APP_PROFILE"
if [ "$1" = "install" ] || [ "$1" = "upgrade" ]; then
    # Disable AppArmor profile on install or upgrade from earlier than when we
    # first shipped the profile if the user does not already have a profile
    # defined
    if dpkg --compare-versions "$2" lt 2.3.1+1403-0ubuntu20 ; then
        if [ ! -e "$APP_CONFFILE" ]; then
            mkdir -p `dirname $APP_DISABLE` 2>/dev/null || true
            ln -sf $APP_CONFFILE $APP_DISABLE
        fi
    fi
fi



exit 0