This file is indexed.

postrm is in freeipa-server 4.3.1-0ubuntu1.

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
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
#!/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/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
        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

# Automatically added by dh_systemd_start
if [ -d /run/systemd/system ]; then
	systemctl --system daemon-reload >/dev/null || true
fi
# End automatically added section
# Automatically added by dh_systemd_enable
if [ "$1" = "remove" ]; then
	if [ -x "/usr/bin/deb-systemd-helper" ]; then
		deb-systemd-helper mask ipa-ods-exporter.service >/dev/null
	fi
fi

if [ "$1" = "purge" ]; then
	if [ -x "/usr/bin/deb-systemd-helper" ]; then
		deb-systemd-helper purge ipa-ods-exporter.service >/dev/null
		deb-systemd-helper unmask ipa-ods-exporter.service >/dev/null
	fi
fi
# End automatically added section
# Automatically added by dh_systemd_enable
if [ "$1" = "remove" ]; then
	if [ -x "/usr/bin/deb-systemd-helper" ]; then
		deb-systemd-helper mask ipa-custodia.service >/dev/null
	fi
fi

if [ "$1" = "purge" ]; then
	if [ -x "/usr/bin/deb-systemd-helper" ]; then
		deb-systemd-helper purge ipa-custodia.service >/dev/null
		deb-systemd-helper unmask ipa-custodia.service >/dev/null
	fi
fi
# End automatically added section
# Automatically added by dh_systemd_enable
if [ "$1" = "remove" ]; then
	if [ -x "/usr/bin/deb-systemd-helper" ]; then
		deb-systemd-helper mask ipa-dnskeysyncd.service >/dev/null
	fi
fi

if [ "$1" = "purge" ]; then
	if [ -x "/usr/bin/deb-systemd-helper" ]; then
		deb-systemd-helper purge ipa-dnskeysyncd.service >/dev/null
		deb-systemd-helper unmask ipa-dnskeysyncd.service >/dev/null
	fi
fi
# End automatically added section
# Automatically added by dh_systemd_enable
if [ "$1" = "remove" ]; then
	if [ -x "/usr/bin/deb-systemd-helper" ]; then
		deb-systemd-helper mask ipa_memcached.service >/dev/null
	fi
fi

if [ "$1" = "purge" ]; then
	if [ -x "/usr/bin/deb-systemd-helper" ]; then
		deb-systemd-helper purge ipa_memcached.service >/dev/null
		deb-systemd-helper unmask ipa_memcached.service >/dev/null
	fi
fi
# End automatically added section
# Automatically added by dh_systemd_enable
if [ "$1" = "remove" ]; then
	if [ -x "/usr/bin/deb-systemd-helper" ]; then
		deb-systemd-helper mask ipa.service >/dev/null
	fi
fi

if [ "$1" = "purge" ]; then
	if [ -x "/usr/bin/deb-systemd-helper" ]; then
		deb-systemd-helper purge ipa.service >/dev/null
		deb-systemd-helper unmask ipa.service >/dev/null
	fi
fi
# End automatically added section