This file is indexed.

postinst is in nordugrid-arc-egiis 5.4.2-1build1.

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
49
50
#!/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 EGIIS" "$LOCAL_APP_PROFILE" || \
    cat <<EOM >> "$LOCAL_APP_PROFILE"
# AppArmor profile for NorduGrid ARC EGIIS START
  #include <abstractions/p11-kit>
  /etc/bdii/* r,
  /usr/share/arc/ldap-schema/* r,
  /{,var/}run/arc/infosys/bdii-slapd.conf r,
  /{,var/}run/arc/infosys/giis-fifo wk,
  /usr/lib/arc/arc-infoindex-slapd-wrapper.so rm,
  /usr/sbin/arc-infoindex-relay ix,
  /tmp/* rwk,
# AppArmor profile for NorduGrid ARC EGIIS 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/11.1.4ubuntu1
if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ] || [ "$1" = "abort-deconfigure" ] || [ "$1" = "abort-remove" ] ; then
	if [ -x "/etc/init.d/nordugrid-arc-egiis" ]; then
		update-rc.d nordugrid-arc-egiis start 76 2 3 4 5 . stop 24 0 1 6 . >/dev/null
		invoke-rc.d nordugrid-arc-egiis start || exit 1
	fi
fi
# End automatically added section