#!/bin/sh -

if [ -r /etc/defaults/periodic.conf ]; then
	. /etc/defaults/periodic.conf
	source_periodic_confs
fi

rc=0

case "${daily_pwhois_updatedb_enable:-YES}" in
	[Nn][Oo])
	;;
	[Yy][Ee][Ss])
	rm /tmp/.pwhois-updatedb.LCK
	su -fm pwhois -c 'lockf -t0 /tmp/.pwhois-updatedb.lock %%PREFIX%%/sbin/pwhois-updatedb' 1>/dev/null
	;;
esac

exit $rc
