File: cron.daily

package info (click to toggle)
slocate 2.7-4
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 508 kB
  • ctags: 221
  • sloc: ansic: 2,125; sh: 775; makefile: 100
file content (12 lines) | stat: -rw-r--r-- 189 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
#! /bin/sh

if [ -x /usr/bin/slocate ]
then
	if [ -f /etc/updatedb.conf ]
	then
		/usr/bin/updatedb
	else
		/usr/bin/updatedb -f proc
	fi
	chown root.slocate /var/lib/slocate/slocate.db
fi