From a3cadaae9afef605bf341237777216bd40294a7d Mon Sep 17 00:00:00 2001 From: Kevin Dalley Date: Sun, 2 Mar 1997 20:42:06 +0000 Subject: [PATCH] change problem with executable mode of updatedb.conf --- debian/postinst | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/debian/postinst b/debian/postinst index 7e3aa886..74366373 100755 --- a/debian/postinst +++ b/debian/postinst @@ -5,6 +5,12 @@ set -e install-info --quiet --section "General commands" "General commands" \ /usr/info/find.info.gz +# In older releases, /var/lib/locate was owned by nobody # findutils_4.1-12 installed /var/lib/locate as root:root chown root:root /var/lib/locate chmod 755 /var/lib/locate + +# In some releases, updatedb.conf was installed executable +if [ -x /etc/updatedb.conf ]; then + chmod 644 /etc/updatedb.conf +fi