#!/bin/sh

#### THE SPOOL DIR IS "SPOOLDIR" IN THE LINE BELOW ####

wwwoffle_spool=SPOOLDIR

####

# 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 -a -m $wwwoffle_spool/html/search/udmsearch/conf/indexer-full.conf \
    >> $wwwoffle_spool/html/search/udmsearch/wwwoffle-udmsearch.log 2>&1

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