This file is indexed.

postinst is in nordugrid-arc-aris 4.0.0-1.

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

set -e

if [ "$1" = "configure" ] ; then
    APP_PROFILE=/etc/apparmor.d/usr.sbin.slapd
    LOCAL_APP_PROFILE=/etc/apparmor.d/local/usr.sbin.slapd

    if [ ! -r "$LOCAL_APP_PROFILE" ] ; then
	# Create the local profile if it does not yet exist
        tmp=`mktemp`
        cat <<EOM > "$tmp"
# Site-specific additions and overrides for usr.sbin.slapd.
# For more details, please see /etc/apparmor.d/local/README.
EOM
        mkdir -p `dirname $LOCAL_APP_PROFILE` 2>/dev/null || true
        mv -f "$tmp" "$LOCAL_APP_PROFILE"
        chmod 644 "$LOCAL_APP_PROFILE"
    fi

    grep -q "AppArmor profile for NorduGrid ARC ARIS" "$LOCAL_APP_PROFILE" || \
    cat <<EOM >> "$LOCAL_APP_PROFILE"
# AppArmor profile for NorduGrid ARC ARIS START
  #include <abstractions/p11-kit>
  /etc/bdii/* r,
  /usr/share/arc/ldap-schema/* r,
  /{,var/}run/arc/infosys/bdii-slapd.conf r,
  /var/lib/arc/bdii/db/** rwk,
  /{,var/}run/arc/bdii/db/* w,
# AppArmor profile for NorduGrid ARC ARIS END
EOM

    if [ -r "$APP_PROFILE" ] ; then
	# Reload the profile
	if aa-status --enabled 2>/dev/null ; then
            apparmor_parser -r -T -W "$APP_PROFILE" || true
	fi
    fi
fi

# Automatically added by dh_installinit
if [ -x "/etc/init.d/nordugrid-arc-bdii" ] || [ -e "/etc/init/nordugrid-arc-bdii.conf" ]; then
	if [ ! -e "/etc/init/nordugrid-arc-bdii.conf" ]; then
		update-rc.d nordugrid-arc-bdii start 76 2 3 4 5 . stop 24 0 1 6 . >/dev/null
	fi
	invoke-rc.d nordugrid-arc-bdii start || exit $?
fi
# End automatically added section