postinst is in click-apparmor 0.2.
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 | #!/bin/sh
set -e
# Automatically added by dh_click
if [ "$1" = "configure" ] && which click >/dev/null 2>&1; then
click hook install apparmor
fi
# End automatically added section
# Automatically added by dh_installinit
if [ -x "/etc/init.d/click-apparmor" ] || [ -e "/etc/init/click-apparmor.conf" ]; then
if [ ! -e "/etc/init/click-apparmor.conf" ]; then
update-rc.d click-apparmor defaults >/dev/null
fi
invoke-rc.d click-apparmor start || exit $?
fi
# End automatically added section
# Automatically added by dh_installinit
update-rc.d -f click-apparmor remove >/dev/null || exit $?
# End automatically added section
|