#!/bin/sh

#### THE SPOOL DIR IS "/var/spool/wwwoffle" IN THE LINE BELOW ####

wwwoffle_spool=/var/spool/wwwoffle

####

# Set the path to include the indexer executable

PATH=$PATH:/usr/local/bin
export PATH

# Set up a log file.

echo > $wwwoffle_spool/html/search/udmsearch/wwwoffle-udmsearch.log

# Do the indexing

indexer $wwwoffle_spool/html/search/udmsearch/conf/indexer-incr.conf \
    >> $wwwoffle_spool/html/search/udmsearch/wwwoffle-udmsearch.log 2>&1

indexer -S $wwwoffle_spool/html/search/udmsearch/conf/indexer-incr.conf \
    >> $wwwoffle_spool/html/search/udmsearch/wwwoffle-udmsearch.log 2>&1
