mlocate/SOURCES/mlocate-run-updatedb

5 lines
138 B
Plaintext
Raw Normal View History

2019-05-07 10:36:13 +00:00
#!/bin/sh
nodevs=$(< /proc/filesystems awk '$1 == "nodev" && $2 != "rootfs" && $2 != "zfs" { print $2 }')
/usr/bin/updatedb -f "$nodevs"