--- debian/cron.daily +++ debian/cron.daily @@ -1,12 +1,11 @@ #! /bin/sh -if [ -x /usr/bin/slocate ] +if [ -x /usr/bin/updatedb ] then if [ -f /etc/updatedb.conf ] then - /usr/bin/updatedb + nice /usr/bin/updatedb else - /usr/bin/updatedb -f proc + nice /usr/bin/updatedb -f proc fi - chown root.slocate /var/lib/slocate/slocate.db fi