mlocate updated

This commit is contained in:
Kolan Sh 2017-02-18 19:01:49 +03:00
parent cd3a94dd58
commit 3ba862cc90
2 changed files with 6 additions and 0 deletions

View File

@ -39,6 +39,9 @@ if [ -x /usr/bin/ionice ] && /usr/bin/ionice -c3 true 2>/dev/null; then
/usr/bin/ionice -c${IONICE_CLASS:-2} -n${IONICE_PRIORITY:-7} -p $$ > /dev/null 2>&1
fi
# Cleanup old temp files from previous unsuccessful runs
rm -f /var/lib/mlocate/mlocate.db.*
# run the updatedb if possible
if [ -x /usr/bin/updatedb ]; then
/usr/bin/updatedb -f "${NODEVS}"

View File

@ -39,6 +39,9 @@ if [ -x /usr/bin/ionice ] && /usr/bin/ionice -c3 true 2>/dev/null; then
/usr/bin/ionice -c${IONICE_CLASS:-2} -n${IONICE_PRIORITY:-7} -p $$ > /dev/null 2>&1
fi
# Cleanup old temp files from previous unsuccessful runs
rm -f /var/lib/mlocate/mlocate.db.*
# run the updatedb if possible
if [ -x /usr/bin/updatedb ]; then
/usr/bin/updatedb -f "${NODEVS}"