1#!/bin/sh - 2#
| 1#!/bin/sh - 2#
|
3# $Id: 310.locate,v 1.1.1.1 1997/08/16 17:04:02 pst Exp $
| 3# $Id: 310.locate,v 1.2 1997/11/01 15:00:40 wosch Exp $
|
4# 5locdb=/var/db/locate.database 6 7if [ -x /usr/libexec/locate.updatedb -a -f $locdb ] ; then 8 9 echo "" 10 echo "Rebuilding locate database:" 11 12 touch ${locdb}; chown nobody ${locdb}; chmod 644 ${locdb} 13
| 4# 5locdb=/var/db/locate.database 6 7if [ -x /usr/libexec/locate.updatedb -a -f $locdb ] ; then 8 9 echo "" 10 echo "Rebuilding locate database:" 11 12 touch ${locdb}; chown nobody ${locdb}; chmod 644 ${locdb} 13
|
| 14 cd /
|
14 echo /usr/libexec/locate.updatedb | nice -5 su -fm nobody 15 chmod 444 ${locdb} 16fi
| 15 echo /usr/libexec/locate.updatedb | nice -5 su -fm nobody 16 chmod 444 ${locdb} 17fi
|