]> Frank Brehm's Git Trees - config/helga-hetzner/etc.git/commitdiff
committing changes in /etc made by "apt install mlocate"
authorFrank Brehm <frank@brehm-online.com>
Wed, 7 Apr 2021 20:06:07 +0000 (22:06 +0200)
committerFrank Brehm <frank@brehm-online.com>
Wed, 7 Apr 2021 20:06:07 +0000 (22:06 +0200)
Package changes:
+mlocate 0.26-3 amd64

.etckeeper
alternatives/locate [new symlink]
alternatives/locate.1.gz [new symlink]
alternatives/updatedb [new symlink]
alternatives/updatedb.8.gz [new symlink]
cron.daily/mlocate [new file with mode: 0755]
group
group-
gshadow
gshadow-
updatedb.conf [new file with mode: 0644]

index df9268245ad32191325a77e3f52a1082fe299d74..049633067b946aac65744f6dd807d5c398b37ec6 100755 (executable)
@@ -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 (symlink)
index 0000000..b33f6cf
--- /dev/null
@@ -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 (symlink)
index 0000000..8d4857d
--- /dev/null
@@ -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 (symlink)
index 0000000..a7598ba
--- /dev/null
@@ -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 (symlink)
index 0000000..d48060b
--- /dev/null
@@ -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 (executable)
index 0000000..bc69541
--- /dev/null
@@ -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 eb0de4853f6391d27ecdd5c35af40ab283ca5f5d..b0476728858d75e004658ddd261d5a9ffae8d2be 100644 (file)
--- 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 49c016c8a1065c507ea86548b7fbb64c7d724915..eb0de4853f6391d27ecdd5c35af40ab283ca5f5d 100644 (file)
--- 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 24ca8c4179691c11ad33693d454592ec166cb0a4..7ab0b533ea1688b6852df7a77de8ff22186eb835 100644 (file)
--- a/gshadow
+++ b/gshadow
@@ -50,3 +50,4 @@ messagebus:!::
 ssh:!::
 systemd-coredump:!!::
 bind:!::
+mlocate:!::
index 0bbaa0e4743c99587d47f2557c4a361855342a87..24ca8c4179691c11ad33693d454592ec166cb0a4 100644 (file)
--- 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 (file)
index 0000000..b40f591
--- /dev/null
@@ -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"