postinst is in mythbuntu-bare-console 2.6.
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 | #!/bin/sh -e
. /usr/share/debconf/confmodule
case "$1" in
configure)
# Create directory for storing bare files
dir=/var/lib/mythtv/bare
if [ -d "$dir" ] && ! dpkg-statoverride --list "$dir" >/dev/null; then
chown -R mythtv:mythtv "$dir" || true
chmod -R 2775 "$dir" || true
fi
db_get mythbuntu-bare-console/configure
;;
abort-upgrade|abort-remove|abort-deconfigure)
;;
*)
echo "postinst called with unknown argument \`$1'" >&2
exit 1
;;
esac
# Automatically added by dh_installinit
if [ -x "/etc/init.d/mythbuntu-bare-console" ] || [ -e "/etc/init/mythbuntu-bare-console.conf" ]; then
if [ ! -e "/etc/init/mythbuntu-bare-console.conf" ]; then
update-rc.d mythbuntu-bare-console defaults >/dev/null
fi
invoke-rc.d mythbuntu-bare-console start || exit $?
fi
# End automatically added section
# Automatically added by dh_installinit
update-rc.d -f mythbuntu-bare-console remove >/dev/null || exit $?
# End automatically added section
# Automatically added by dh_installinit
if [ -x "/etc/init.d/mythbuntu-bare-console-processor" ] || [ -e "/etc/init/mythbuntu-bare-console-processor.conf" ]; then
if [ ! -e "/etc/init/mythbuntu-bare-console-processor.conf" ]; then
update-rc.d mythbuntu-bare-console-processor defaults >/dev/null
fi
invoke-rc.d mythbuntu-bare-console-processor start || exit $?
fi
# End automatically added section
# Automatically added by dh_installinit
update-rc.d -f mythbuntu-bare-console-processor remove >/dev/null || exit $?
# End automatically added section
exit 0
|