|
@ -1,12 +1,12 @@ |
|
|
#!/bin/sh - |
|
|
#!/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 |
|
|
PATH=/bin:/sbin:/usr/sbin:/usr/bin:/usr/libexec |
|
|
export PATH |
|
|
export PATH |
|
|
|
|
|
|
|
|
if [ -f /etc/weekly.local ];then |
|
|
|
|
|
|
|
|
if [ -f /etc/weekly.local ]; then |
|
|
echo "" |
|
|
echo "" |
|
|
echo "Running weekly.local:" |
|
|
echo "Running weekly.local:" |
|
|
. /etc/weekly.local |
|
|
. /etc/weekly.local |
|
@ -14,7 +14,7 @@ fi |
|
|
|
|
|
|
|
|
echo "" |
|
|
echo "" |
|
|
if [ -f /var/db/locate.database ]; then |
|
|
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 |
|
|
if [ $? -eq 0 ]; then |
|
|
trap 'rm -f $TMP' 0 1 15 |
|
|
trap 'rm -f $TMP' 0 1 15 |
|
|
echo "Rebuilding locate database:" |
|
|
echo "Rebuilding locate database:" |
|
|