void-packages/srcpkgs/findutils/files/updatedb.cron-daily

12 lines
231 B
Bash
Executable File

#!/bin/sh
# Read system defaults.
if [ -r /etc/updatedb.conf ]; then
. /etc/updatedb.conf
fi
# Update the "locate" database
if [ -x /usr/bin/updatedb ]; then
env PRUNEFS="$PRUNEFS" PRUNEPATHS="$PRUNEPATHS" /usr/bin/updatedb
fi