From d2fef172b85ff023d66939587d363f07bf137128 Mon Sep 17 00:00:00 2001 From: Frank Brehm Date: Wed, 7 Apr 2021 22:06:07 +0200 Subject: [PATCH] committing changes in /etc made by "apt install mlocate" Package changes: +mlocate 0.26-3 amd64 --- .etckeeper | 2 ++ alternatives/locate | 1 + alternatives/locate.1.gz | 1 + alternatives/updatedb | 1 + alternatives/updatedb.8.gz | 1 + cron.daily/mlocate | 27 +++++++++++++++++++++++++++ group | 1 + group- | 1 + gshadow | 1 + gshadow- | 1 + updatedb.conf | 4 ++++ 11 files changed, 41 insertions(+) create mode 120000 alternatives/locate create mode 120000 alternatives/locate.1.gz create mode 120000 alternatives/updatedb create mode 120000 alternatives/updatedb.8.gz create mode 100755 cron.daily/mlocate create mode 100644 updatedb.conf diff --git a/.etckeeper b/.etckeeper index df92682..0496330 100755 --- a/.etckeeper +++ b/.etckeeper @@ -214,6 +214,7 @@ maybe chmod 0755 'cron.daily/etckeeper' maybe chmod 0755 'cron.daily/logrotate' maybe chmod 0755 'cron.daily/man-db' maybe chmod 0755 'cron.daily/mdadm' +maybe chmod 0755 'cron.daily/mlocate' maybe chmod 0755 'cron.daily/passwd' maybe chmod 0755 'cron.hourly' maybe chmod 0644 'cron.hourly/.placeholder' @@ -652,6 +653,7 @@ maybe chmod 0644 'ufw/applications.d/bind9' maybe chmod 0644 'ufw/applications.d/openssh-server' maybe chmod 0755 'update-motd.d' maybe chmod 0755 'update-motd.d/10-uname' +maybe chmod 0644 'updatedb.conf' maybe chmod 0755 'vim' maybe chmod 0644 'vim/vimrc' maybe chmod 0644 'vim/vimrc.local' diff --git a/alternatives/locate b/alternatives/locate new file mode 120000 index 0000000..b33f6cf --- /dev/null +++ b/alternatives/locate @@ -0,0 +1 @@ +/usr/bin/mlocate \ No newline at end of file diff --git a/alternatives/locate.1.gz b/alternatives/locate.1.gz new file mode 120000 index 0000000..8d4857d --- /dev/null +++ b/alternatives/locate.1.gz @@ -0,0 +1 @@ +/usr/share/man/man1/mlocate.1.gz \ No newline at end of file diff --git a/alternatives/updatedb b/alternatives/updatedb new file mode 120000 index 0000000..a7598ba --- /dev/null +++ b/alternatives/updatedb @@ -0,0 +1 @@ +/usr/bin/updatedb.mlocate \ No newline at end of file diff --git a/alternatives/updatedb.8.gz b/alternatives/updatedb.8.gz new file mode 120000 index 0000000..d48060b --- /dev/null +++ b/alternatives/updatedb.8.gz @@ -0,0 +1 @@ +/usr/share/man/man8/updatedb.mlocate.8.gz \ No newline at end of file diff --git a/cron.daily/mlocate b/cron.daily/mlocate new file mode 100755 index 0000000..bc69541 --- /dev/null +++ b/cron.daily/mlocate @@ -0,0 +1,27 @@ +#! /bin/bash + +set -e + +[ -x /usr/bin/updatedb.mlocate ] || exit 0 + +if which on_ac_power >/dev/null 2>&1; then + ON_BATTERY=0 + on_ac_power >/dev/null 2>&1 || ON_BATTERY=$? + if [ "$ON_BATTERY" -eq 1 ]; then + exit 0 + fi +fi + +# See ionice(1) +if [ -x /usr/bin/ionice ] && + /usr/bin/ionice -c3 true 2>/dev/null; then + IONICE="/usr/bin/ionice -c3" +fi + +# See nocache(1) +NOCACHE= +if [ -x /usr/bin/nocache ]; then + NOCACHE="/usr/bin/nocache" +fi + +flock --nonblock /run/mlocate.daily.lock $NOCACHE $IONICE nice /usr/bin/updatedb.mlocate diff --git a/group b/group index eb0de48..b047672 100644 --- a/group +++ b/group @@ -50,3 +50,4 @@ messagebus:x:110: ssh:x:111: systemd-coredump:x:999: bind:x:112: +mlocate:x:113: diff --git a/group- b/group- index 49c016c..eb0de48 100644 --- a/group- +++ b/group- @@ -49,3 +49,4 @@ netdev:x:109: messagebus:x:110: ssh:x:111: systemd-coredump:x:999: +bind:x:112: diff --git a/gshadow b/gshadow index 24ca8c4..7ab0b53 100644 --- a/gshadow +++ b/gshadow @@ -50,3 +50,4 @@ messagebus:!:: ssh:!:: systemd-coredump:!!:: bind:!:: +mlocate:!:: diff --git a/gshadow- b/gshadow- index 0bbaa0e..24ca8c4 100644 --- a/gshadow- +++ b/gshadow- @@ -49,3 +49,4 @@ netdev:!:: messagebus:!:: ssh:!:: systemd-coredump:!!:: +bind:!:: diff --git a/updatedb.conf b/updatedb.conf new file mode 100644 index 0000000..b40f591 --- /dev/null +++ b/updatedb.conf @@ -0,0 +1,4 @@ +PRUNE_BIND_MOUNTS="yes" +# PRUNENAMES=".git .bzr .hg .svn" +PRUNEPATHS="/tmp /var/spool /media /var/lib/os-prober /var/lib/ceph" +PRUNEFS="NFS afs autofs binfmt_misc ceph cgroup cgroup2 cifs coda configfs curlftpfs debugfs devfs devpts devtmpfs ecryptfs ftpfs fuse.ceph fuse.glusterfs fuse.gvfsd-fuse fuse.mfs fuse.rozofs fuse.sshfs fusectl fusesmb hugetlbfs iso9660 lustre lustre_lite mfs mqueue ncpfs nfs nfs4 ocfs ocfs2 proc pstore rpc_pipefs securityfs shfs smbfs sysfs tmpfs tracefs udev udf usbfs" -- 2.39.5