File: xapian-omega.postinst

package info (click to toggle)
xapian-omega 1.0.7-3+lenny2
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 2,424 kB
  • ctags: 744
  • sloc: sh: 9,112; cpp: 7,954; makefile: 245; perl: 119
file content (19 lines) | stat: -rw-r--r-- 638 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh -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.

#DEBHELPER#

exit 0