postrm is in apparmor-profiles 2.7.102-0ubuntu3.
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 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 | #!/bin/sh
# postrm script for apparmor-profiles
#
# see: dh_installdeb(1)
set -e
case "$1" in
purge)
if [ -e /etc/apparmor.d/abstractions/ubuntu-browsers.d/chromium-browser ]; then
rm -f /etc/apparmor.d/abstractions/ubuntu-browsers.d/chromium-browser
fi
# We automatically create local/* files in postinst, so we need to remove them on purge
if [ -e "/var/lib/dpkg/info/apparmor-profiles.list" ]; then
grep "/etc/apparmor.d/" /var/lib/dpkg/info/apparmor-profiles.list | while read profile ; do
f="/etc/apparmor.d/local/`basename $profile`"
if [ -f "$f" ]; then
rm -f "$f"
fi
done
fi
;;
remove|upgrade|failed-upgrade|disappear)
;;
*)
echo "postrm called with unknown argument \`$1'" >&2
exit 1
;;
esac
# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.
# Automatically added by dh_apparmor
if [ "$1" = "purge" ]; then
rm -f "/etc/apparmor.d/disable/usr.sbin.traceroute" || true
rm -f "/etc/apparmor.d/force-complain/usr.sbin.traceroute" || true
rm -f "/etc/apparmor.d/local/usr.sbin.traceroute" || true
rmdir /etc/apparmor.d/local 2>/dev/null || true
fi
# End automatically added section
# Automatically added by dh_apparmor
if [ "$1" = "purge" ]; then
rm -f "/etc/apparmor.d/disable/usr.sbin.smbd" || true
rm -f "/etc/apparmor.d/force-complain/usr.sbin.smbd" || true
rm -f "/etc/apparmor.d/local/usr.sbin.smbd" || true
rmdir /etc/apparmor.d/local 2>/dev/null || true
fi
# End automatically added section
# Automatically added by dh_apparmor
if [ "$1" = "purge" ]; then
rm -f "/etc/apparmor.d/disable/usr.sbin.nscd" || true
rm -f "/etc/apparmor.d/force-complain/usr.sbin.nscd" || true
rm -f "/etc/apparmor.d/local/usr.sbin.nscd" || true
rmdir /etc/apparmor.d/local 2>/dev/null || true
fi
# End automatically added section
# Automatically added by dh_apparmor
if [ "$1" = "purge" ]; then
rm -f "/etc/apparmor.d/disable/usr.sbin.nmbd" || true
rm -f "/etc/apparmor.d/force-complain/usr.sbin.nmbd" || true
rm -f "/etc/apparmor.d/local/usr.sbin.nmbd" || true
rmdir /etc/apparmor.d/local 2>/dev/null || true
fi
# End automatically added section
# Automatically added by dh_apparmor
if [ "$1" = "purge" ]; then
rm -f "/etc/apparmor.d/disable/usr.sbin.mdnsd" || true
rm -f "/etc/apparmor.d/force-complain/usr.sbin.mdnsd" || true
rm -f "/etc/apparmor.d/local/usr.sbin.mdnsd" || true
rmdir /etc/apparmor.d/local 2>/dev/null || true
fi
# End automatically added section
# Automatically added by dh_apparmor
if [ "$1" = "purge" ]; then
rm -f "/etc/apparmor.d/disable/usr.sbin.identd" || true
rm -f "/etc/apparmor.d/force-complain/usr.sbin.identd" || true
rm -f "/etc/apparmor.d/local/usr.sbin.identd" || true
rmdir /etc/apparmor.d/local 2>/dev/null || true
fi
# End automatically added section
# Automatically added by dh_apparmor
if [ "$1" = "purge" ]; then
rm -f "/etc/apparmor.d/disable/usr.sbin.dovecot" || true
rm -f "/etc/apparmor.d/force-complain/usr.sbin.dovecot" || true
rm -f "/etc/apparmor.d/local/usr.sbin.dovecot" || true
rmdir /etc/apparmor.d/local 2>/dev/null || true
fi
# End automatically added section
# Automatically added by dh_apparmor
if [ "$1" = "purge" ]; then
rm -f "/etc/apparmor.d/disable/usr.sbin.dnsmasq" || true
rm -f "/etc/apparmor.d/force-complain/usr.sbin.dnsmasq" || true
rm -f "/etc/apparmor.d/local/usr.sbin.dnsmasq" || true
rmdir /etc/apparmor.d/local 2>/dev/null || true
fi
# End automatically added section
# Automatically added by dh_apparmor
if [ "$1" = "purge" ]; then
rm -f "/etc/apparmor.d/disable/usr.sbin.avahi-daemon" || true
rm -f "/etc/apparmor.d/force-complain/usr.sbin.avahi-daemon" || true
rm -f "/etc/apparmor.d/local/usr.sbin.avahi-daemon" || true
rmdir /etc/apparmor.d/local 2>/dev/null || true
fi
# End automatically added section
# Automatically added by dh_apparmor
if [ "$1" = "purge" ]; then
rm -f "/etc/apparmor.d/disable/usr.lib.dovecot.pop3-login" || true
rm -f "/etc/apparmor.d/force-complain/usr.lib.dovecot.pop3-login" || true
rm -f "/etc/apparmor.d/local/usr.lib.dovecot.pop3-login" || true
rmdir /etc/apparmor.d/local 2>/dev/null || true
fi
# End automatically added section
# Automatically added by dh_apparmor
if [ "$1" = "purge" ]; then
rm -f "/etc/apparmor.d/disable/usr.lib.dovecot.pop3" || true
rm -f "/etc/apparmor.d/force-complain/usr.lib.dovecot.pop3" || true
rm -f "/etc/apparmor.d/local/usr.lib.dovecot.pop3" || true
rmdir /etc/apparmor.d/local 2>/dev/null || true
fi
# End automatically added section
# Automatically added by dh_apparmor
if [ "$1" = "purge" ]; then
rm -f "/etc/apparmor.d/disable/usr.lib.dovecot.managesieve-login" || true
rm -f "/etc/apparmor.d/force-complain/usr.lib.dovecot.managesieve-login" || true
rm -f "/etc/apparmor.d/local/usr.lib.dovecot.managesieve-login" || true
rmdir /etc/apparmor.d/local 2>/dev/null || true
fi
# End automatically added section
# Automatically added by dh_apparmor
if [ "$1" = "purge" ]; then
rm -f "/etc/apparmor.d/disable/usr.lib.dovecot.imap-login" || true
rm -f "/etc/apparmor.d/force-complain/usr.lib.dovecot.imap-login" || true
rm -f "/etc/apparmor.d/local/usr.lib.dovecot.imap-login" || true
rmdir /etc/apparmor.d/local 2>/dev/null || true
fi
# End automatically added section
# Automatically added by dh_apparmor
if [ "$1" = "purge" ]; then
rm -f "/etc/apparmor.d/disable/usr.lib.dovecot.imap" || true
rm -f "/etc/apparmor.d/force-complain/usr.lib.dovecot.imap" || true
rm -f "/etc/apparmor.d/local/usr.lib.dovecot.imap" || true
rmdir /etc/apparmor.d/local 2>/dev/null || true
fi
# End automatically added section
# Automatically added by dh_apparmor
if [ "$1" = "purge" ]; then
rm -f "/etc/apparmor.d/disable/usr.lib.dovecot.dovecot-auth" || true
rm -f "/etc/apparmor.d/force-complain/usr.lib.dovecot.dovecot-auth" || true
rm -f "/etc/apparmor.d/local/usr.lib.dovecot.dovecot-auth" || true
rmdir /etc/apparmor.d/local 2>/dev/null || true
fi
# End automatically added section
# Automatically added by dh_apparmor
if [ "$1" = "purge" ]; then
rm -f "/etc/apparmor.d/disable/usr.lib.dovecot.deliver" || true
rm -f "/etc/apparmor.d/force-complain/usr.lib.dovecot.deliver" || true
rm -f "/etc/apparmor.d/local/usr.lib.dovecot.deliver" || true
rmdir /etc/apparmor.d/local 2>/dev/null || true
fi
# End automatically added section
# Automatically added by dh_apparmor
if [ "$1" = "purge" ]; then
rm -f "/etc/apparmor.d/disable/usr.bin.chromium-browser" || true
rm -f "/etc/apparmor.d/force-complain/usr.bin.chromium-browser" || true
rm -f "/etc/apparmor.d/local/usr.bin.chromium-browser" || true
rmdir /etc/apparmor.d/local 2>/dev/null || true
fi
# End automatically added section
# Automatically added by dh_apparmor
if [ "$1" = "purge" ]; then
rm -f "/etc/apparmor.d/disable/sbin.syslog-ng" || true
rm -f "/etc/apparmor.d/force-complain/sbin.syslog-ng" || true
rm -f "/etc/apparmor.d/local/sbin.syslog-ng" || true
rmdir /etc/apparmor.d/local 2>/dev/null || true
fi
# End automatically added section
# Automatically added by dh_apparmor
if [ "$1" = "purge" ]; then
rm -f "/etc/apparmor.d/disable/sbin.syslogd" || true
rm -f "/etc/apparmor.d/force-complain/sbin.syslogd" || true
rm -f "/etc/apparmor.d/local/sbin.syslogd" || true
rmdir /etc/apparmor.d/local 2>/dev/null || true
fi
# End automatically added section
# Automatically added by dh_apparmor
if [ "$1" = "purge" ]; then
rm -f "/etc/apparmor.d/disable/sbin.klogd" || true
rm -f "/etc/apparmor.d/force-complain/sbin.klogd" || true
rm -f "/etc/apparmor.d/local/sbin.klogd" || true
rmdir /etc/apparmor.d/local 2>/dev/null || true
fi
# End automatically added section
# Automatically added by dh_apparmor
if [ "$1" = "purge" ]; then
rm -f "/etc/apparmor.d/disable/bin.ping" || true
rm -f "/etc/apparmor.d/force-complain/bin.ping" || true
rm -f "/etc/apparmor.d/local/bin.ping" || true
rmdir /etc/apparmor.d/local 2>/dev/null || true
fi
# End automatically added section
exit 0
|