|
|
@ -1,12 +1,12 @@ |
|
|
|
#!/bin/sh - |
|
|
|
# |
|
|
|
# $OpenBSD: weekly,v 1.13 2003/04/08 20:42:42 millert Exp $ |
|
|
|
# $OpenBSD: weekly,v 1.14 2003/06/30 22:04:57 avsm Exp $ |
|
|
|
# |
|
|
|
|
|
|
|
PATH=/bin:/sbin:/usr/sbin:/usr/bin:/usr/libexec |
|
|
|
export PATH |
|
|
|
|
|
|
|
if [ -f /etc/weekly.local ];then |
|
|
|
if [ -f /etc/weekly.local ]; then |
|
|
|
echo "" |
|
|
|
echo "Running weekly.local:" |
|
|
|
. /etc/weekly.local |
|
|
@ -14,7 +14,7 @@ fi |
|
|
|
|
|
|
|
echo "" |
|
|
|
if [ -f /var/db/locate.database ]; then |
|
|
|
TMP=`mktemp /var/db/locate.database.XXXXXX` |
|
|
|
TMP=`mktemp /var/db/locate.database.XXXXXXXXXX` |
|
|
|
if [ $? -eq 0 ]; then |
|
|
|
trap 'rm -f $TMP' 0 1 15 |
|
|
|
echo "Rebuilding locate database:" |
|
|
|