File: 0430-update-mlocate-database.hook.chroot

package info (click to toggle)
open-infrastructure-system-build 20161101-lts2-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 2,028 kB
  • ctags: 82
  • sloc: sh: 8,825; makefile: 128
file content (14 lines) | stat: -rwxr-xr-x 315 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh

set -e

# Update the mlocate database.
#
# It is convenient for this to be already up to date on the live system, and it
# means that if the live system is later installed to a hard disk then less
# work will be required after installation.

if [ -x /usr/bin/updatedb.mlocate ]
then
	updatedb.mlocate
fi