postinst is in xapian-omega 1.2.8-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 | #!/bin/sh
set -e
# Check package is being configured.
if [ "$1" = configure ] ; then
# We need some templates to work at all, so check the directory exists.
# It might not if we've never been installed before, or were uninstalled and
# purged, or uninstalled and the sysadmin removed the templates by hand.
if [ ! -d /var/lib/xapian-omega/templates ] ; then
mkdir -m 755 /var/lib/xapian-omega/templates
ln -s /usr/share/xapian-omega/templates/* /var/lib/xapian-omega/templates
fi
fi
# dh_installdeb will replace the magic cookie below with any postinst actions
# generated by other debhelper scripts.
exit 0
|