postinst is in mime-support 3.54ubuntu1.1.
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 | #! /bin/sh -e
# dpkg triggers support for update-mime
if [ "$1" = "triggered" ]; then
test -x /usr/sbin/update-mime && /usr/sbin/update-mime --triggered
exit 0
fi
# Remove the old status directory (and any orphaned install-mime program)
rm -fr /var/lib/mime
rm -f /usr/sbin/install-mime
# Use "see" as alternative for "view"
update-alternatives \
--install /usr/bin/view view /usr/bin/see 1 \
--slave /usr/share/man/man1/view.1.gz view.1.gz /usr/share/man/man1/see.1.gz
# Run the update program
if [ -x /usr/sbin/update-mime ]; then
/usr/sbin/update-mime --triggered
fi
|