postinst is in click-apparmor 0.3.13.
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 | #! /bin/sh
set -e
dpkg-maintscript-helper rm_conffile /etc/init.d/click-apparmor 0.2.6 -- "$@"
dpkg-maintscript-helper rm_conffile /etc/init/click-apparmor.conf 0.2.6 -- "$@"
# Automatically added by dh_click
if [ "$1" = "configure" ] && which click >/dev/null 2>&1; then
click hook install apparmor
fi
# End automatically added section
if [ "$1" = "configure" ]; then
. /lib/apparmor/functions
# Discard the return code and just make sure the md5sums are updated
# so on next boot the upstart/initscript will have updated md5sums and
# won't clear out the cache. This does not affect system-image updates
# since /etc/system-image/writable-paths is configured to prefer the
# files on the device (and the apparmor upstart job handles this).
compare_and_save_debsums click-apparmor || true
fi
|