freebsd-ports/net/pwhois/files/512.pwhois-updatedb.in
Ryan Steinmetz 16469b1d7c - Add missing pwdump tool
- Fix timeout in updater script
- Silence warnings in updater script
- Fix periodic script
- Fix default directory permissions
- Bump PORTREVISION
2015-04-22 16:07:52 +00:00

22 lines
364 B
Bash

#!/bin/sh -
#
# $FreeBSD$
#
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