From 1bb2648cde916ac27d3dd75d7b64a4ddc89787b7 Mon Sep 17 00:00:00 2001 From: root Date: Sun, 10 Feb 2013 01:12:52 -0800 Subject: Sun Feb 10 01:12:35 PST 2013 --- core/mlocate/mlocate.install | 18 ------------------ core/mlocate/updatedb.cron.daily | 29 ----------------------------- 2 files changed, 47 deletions(-) delete mode 100644 core/mlocate/mlocate.install delete mode 100755 core/mlocate/updatedb.cron.daily (limited to 'core/mlocate') diff --git a/core/mlocate/mlocate.install b/core/mlocate/mlocate.install deleted file mode 100644 index c7b7f9cf7..000000000 --- a/core/mlocate/mlocate.install +++ /dev/null @@ -1,18 +0,0 @@ -post_install() { - post_upgrade "$1" "$1" - echo "mlocate command is technically locate, but slocate is symlinked and still works." - echo "You should run updatedb as root." -} - -post_upgrade() { - # This can be removed after {m,x}locate have both been updated - getent group slocate &>/dev/null && usr/sbin/groupdel slocate &>/dev/null - getent group mlocate &>/dev/null && usr/sbin/groupdel mlocate &>/dev/null - - getent group locate &>/dev/null || usr/sbin/groupadd -g 21 locate &>/dev/null - chown -R root:locate var/lib/mlocate -} - -pre_remove() { - getent group locate &>/dev/null && usr/sbin/groupdel locate &>/dev/null -} diff --git a/core/mlocate/updatedb.cron.daily b/core/mlocate/updatedb.cron.daily deleted file mode 100755 index cac9bb063..000000000 --- a/core/mlocate/updatedb.cron.daily +++ /dev/null @@ -1,29 +0,0 @@ -#!/bin/sh - -# nicenesses range from -20 (most favorable scheduling) to 19 (least favorable) -NICE=19 - -# 0 for none, 1 for real time, 2 for best-effort, 3 for idle -IONICE_CLASS=2 - -# 0-7 (for IONICE_CLASS 1 and 2 only), 0=highest, 7=lowest -IONICE_PRIORITY=7 - -UPDATEDB="/usr/bin/updatedb" - -if [ -x /usr/bin/nice ]; then - UPDATEDB="/usr/bin/nice -n ${NICE:-19} ${UPDATEDB}" -fi - -if [ -x /usr/bin/ionice ]; then - UPDATEDB="/usr/bin/ionice -c ${IONICE_CLASS:-2} -n ${IONICE_PRIORITY:-7} ${UPDATEDB}" -fi - -# Update the "locate" database -if [ -x /usr/bin/updatedb ]; then - if [ -f /etc/updatedb.conf ]; then - ${UPDATEDB} - else - ${UPDATEDB} -f proc - fi -fi -- cgit v1.2.3-54-g00ecf