postinst is in xen-utils-common 4.4.0-0ubuntu5.
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 | #!/bin/sh
set -e
case "$1" in
configure)
install -d -m 2750 -g adm /var/log/xen
;;
abort-upgrade|abort-remove|abort-deconfigure)
;;
*)
echo "postinst called with unknown argument \`$1'" >&2
exit 1
;;
esac
dpkg-maintscript-helper mv_conffile /etc/init.d/xend /etc/init.d/xen 4.1.2-4~ -- "$@"
# Somehow the private lib path which is versioned ends up in the xend
# domain configs. But the tools will automatically prefix the current
# tools path.
/usr/lib/xen-common/bin/xend-domain-config-path-strip
# Automatically added by dh_installinit
if [ -x "/etc/init.d/xen" ] || [ -e "/etc/init/xen.conf" ]; then
if [ ! -e "/etc/init/xen.conf" ]; then
update-rc.d xen defaults 20 21 >/dev/null
fi
invoke-rc.d xen start || exit $?
fi
# End automatically added section
# Automatically added by dh_installinit
if [ -x "/etc/init.d/xendomains" ]; then
if [ ! -e "/etc/init/xendomains.conf" ]; then
update-rc.d xendomains defaults 21 20 >/dev/null
fi
fi
# End automatically added section
# Automatically added by dh_ucf
if [ "$1" = "configure" ]; then
ucf "/usr/share/xen-utils-common/default.xen" "/etc/default/xen"
ucfr xen-utils-common "/etc/default/xen"
fi
# End automatically added section
exit 0
|