source: squid-ssl/trunk/fuentes/debian/squid.postinst.debhelper @ 5495

Last change on this file since 5495 was 5495, checked in by Juanma, 22 months ago

Initial release

File size: 1.7 KB
Line 
1# Automatically added by dh_apparmor
2if [ "$1" = "configure" ]; then
3    APP_PROFILE="/etc/apparmor.d/usr.sbin.squid-ssl"
4    if [ -f "$APP_PROFILE" ]; then
5        # Add the local/ include
6        LOCAL_APP_PROFILE="/etc/apparmor.d/local/usr.sbin.squid-ssl"
7
8        test -e "$LOCAL_APP_PROFILE" || {
9            tmp=`mktemp`
10        cat <<EOM > "$tmp"
11# Site-specific additions and overrides for usr.sbin.squid-ssl.
12# For more details, please see /etc/apparmor.d/local/README.
13EOM
14            mkdir `dirname "$LOCAL_APP_PROFILE"` 2>/dev/null || true
15            mv -f "$tmp" "$LOCAL_APP_PROFILE"
16            chmod 644 "$LOCAL_APP_PROFILE"
17        }
18
19        # Reload the profile, including any abstraction updates
20        if aa-status --enabled 2>/dev/null; then
21            apparmor_parser -r -T -W "$APP_PROFILE" || true
22        fi
23    fi
24fi
25# End automatically added section
26# Automatically added by dh_apparmor
27if [ "$1" = "configure" ]; then
28    APP_PROFILE="/etc/apparmor.d/usr.sbin.squid-ssl"
29    if [ -f "$APP_PROFILE" ]; then
30        # Add the local/ include
31        LOCAL_APP_PROFILE="/etc/apparmor.d/local/usr.sbin.squid-ssl"
32
33        test -e "$LOCAL_APP_PROFILE" || {
34            tmp=`mktemp`
35        cat <<EOM > "$tmp"
36# Site-specific additions and overrides for usr.sbin.squid-ssl.
37# For more details, please see /etc/apparmor.d/local/README.
38EOM
39            mkdir `dirname "$LOCAL_APP_PROFILE"` 2>/dev/null || true
40            mv -f "$tmp" "$LOCAL_APP_PROFILE"
41            chmod 644 "$LOCAL_APP_PROFILE"
42        }
43
44        # Reload the profile, including any abstraction updates
45        if aa-status --enabled 2>/dev/null; then
46            apparmor_parser -r -T -W "$APP_PROFILE" || true
47        fi
48    fi
49fi
50# End automatically added section
Note: See TracBrowser for help on using the repository browser.