#!/bin/sh

CMD=/usr/sbin/update-apt-xapian-index
IONICE=/usr/bin/ionice

# Rebuild the index
if [ -x $CMD ]
then
	if [ -x $IONICE ]
	then
		nice $IONICE -c3 $CMD --quiet
	else
		nice $CMD --quiet
	fi
fi
