Browse Source

locate shell scripts now use mktemp(1) and weekly runs updatedb

as bin not nobody to avoid NFS problems.
OPENBSD_2_1
millert 28 years ago
parent
commit
ea8e82ac11
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      src/etc/weekly

+ 3
- 3
src/etc/weekly View File

@ -1,6 +1,6 @@
#!/bin/sh -
#
# $OpenBSD: weekly,v 1.4 1996/12/18 04:32:57 millert Exp $
# $OpenBSD: weekly,v 1.5 1997/01/03 23:33:50 millert Exp $
#
PATH=/bin:/sbin:/usr/sbin:/usr/bin:/usr/libexec
@ -59,8 +59,8 @@ echo ""
if [ -f /var/db/locate.database ]; then
echo "Rebuilding locate database:"
chmod 644 /var/db/locate.database
chown nobody.nobody /var/db/locate.database
echo /usr/libexec/locate.updatedb | nice -5 su -m nobody 2>/dev/null
chown bin /var/db/locate.database
echo /usr/libexec/locate.updatedb | nice -5 su -m bin 2>/dev/null
chown root.wheel /var/db/locate.database
else
echo "Not rebuilding locate database; no /var/db/locate.database"


Loading…
Cancel
Save