]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blame - config/findutils/updatedb
core130: Fix errors in rootfile
[people/pmueller/ipfire-2.x.git] / config / findutils / updatedb
CommitLineData
bfea8d7d
MT
1#!/bin/bash
2
3[ -x "/usr/bin/updatedb" ] || exit 0
4
5LOCKFILE="/var/lib/locate/updatedb.lock"
6
7trap "rm -f $LOCKFILE" EXIT
8
9if [ -e "$LOCKFILE" ]; then
10 echo >&2 "Warning: $LOCKFILE present, not running updatedb."
11 exit 1
12else
13 touch "$LOCKFILE"
14fi
15
d79fbce4 16/usr/bin/updatedb