File: freeipa-server.postrm

package info (click to toggle)
freeipa 4.12.4-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 100,668 kB
  • sloc: python: 298,952; javascript: 71,606; ansic: 49,369; sh: 6,547; makefile: 2,553; xml: 343; sed: 16
file content (65 lines) | stat: -rw-r--r-- 2,482 bytes parent folder | download | duplicates (4)
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
#!/bin/sh
set -e

case "$1" in
    remove|purge)
        if [ -e /usr/share/apache2/apache2-maintscript-helper ]; then
            . /usr/share/apache2/apache2-maintscript-helper

            if [ -e /etc/apache2/mods-enabled/auth_kerb.load ]; then
                apache2_invoke dismod auth_kerb || exit $?
            fi
            if [ -e /etc/apache2/mods-enabled/auth_gssapi.load ]; then
                apache2_invoke dismod auth_gssapi || exit $?
            fi
            if [ -e /etc/apache2/mods-enabled/authz_user.load ]; then
                apache2_invoke dismod authz_user || exit $?
            fi
            if [ -e /etc/apache2/mods-enabled/deflate.load ]; then
                apache2_invoke dismod deflate || exit $?
            fi
            if [ -e /etc/apache2/mods-enabled/expires.load ]; then
                apache2_invoke dismod expires || exit $?
            fi
            if [ -e /etc/apache2/mods-enabled/headers.load ]; then
                apache2_invoke dismod headers || exit $?
            fi
            if [ -e /etc/apache2/mods-enabled/lookup_identity.load ]; then
                apache2_invoke dismod lookup_identity || exit $?
            fi
            if [ -e /etc/apache2/mods-enabled/proxy.load ]; then
                apache2_invoke dismod proxy || exit $?
            fi
            if [ -e /etc/apache2/mods-enabled/proxy_ajp.load ]; then
                apache2_invoke dismod proxy_ajp || exit $?
            fi
            if [ -e /etc/apache2/mods-enabled/proxy_http.load ]; then
                apache2_invoke dismod proxy_http || exit $?
            fi
            if [ -e /etc/apache2/mods-enabled/rewrite.load ]; then
                apache2_invoke dismod rewrite || exit $?
            fi
            if [ -e /etc/apache2/mods-enabled/session.load ]; then
                apache2_invoke dismod session || exit $?
            fi
            if [ -e /etc/apache2/mods-enabled/session_cookie.load ]; then
                apache2_invoke dismod session_cookie || exit $?
            fi
            if [ -e /etc/apache2/mods-enabled/ssl.load ]; then
                apache2_invoke dismod ssl || exit $?
            fi
        fi
    ;;
esac
case "$1" in
    purge)
        rm -f \
            /var/log/ipareplica-conncheck.log \
            /var/log/ipareplica-install.log \
            /var/log/ipaserver-install.log \
            /var/log/ipaserver-uninstall.log \
            /var/log/ipaupgrade.log
    ;;
esac

#DEBHELPER#