16469b1d7c
- Fix timeout in updater script - Silence warnings in updater script - Fix periodic script - Fix default directory permissions - Bump PORTREVISION
22 lines
364 B
Bash
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
|