summaryrefslogtreecommitdiffstats
path: root/abs/core/mlocate/updatedb.cron.daily
diff options
context:
space:
mode:
Diffstat (limited to 'abs/core/mlocate/updatedb.cron.daily')
-rwxr-xr-xabs/core/mlocate/updatedb.cron.daily10
1 files changed, 10 insertions, 0 deletions
diff --git a/abs/core/mlocate/updatedb.cron.daily b/abs/core/mlocate/updatedb.cron.daily
new file mode 100755
index 0000000..b457cf8
--- /dev/null
+++ b/abs/core/mlocate/updatedb.cron.daily
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+# Update the "locate" database
+if [ -x /usr/bin/updatedb ]; then
+ if [ -f /etc/updatedb.conf ]; then
+ /usr/bin/updatedb
+ else
+ /usr/bin/updatedb -f proc
+ fi
+fi