From b7131c2260cc32925d01aae70275cc2bf155fade Mon Sep 17 00:00:00 2001 From: Peter Palfrader <peter@palfrader.org> Date: Fri, 12 Nov 2004 16:48:27 +0000 Subject: Make logs readable by the system administrators (group adm) svn:r2810 --- debian/tor.postinst | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'debian/tor.postinst') diff --git a/debian/tor.postinst b/debian/tor.postinst index cd2e91bee..3224a3260 100644 --- a/debian/tor.postinst +++ b/debian/tor.postinst @@ -47,6 +47,18 @@ if [ "$2" = "" ]; then chmod -R 700 /var/$i/tor find /var/$i/tor -type f -exec chmod 600 '{}' ';' done + chgrp -R adm /var/log/tor + chmod -R g+rX /var/log/tor + chmod g+s /var/log/tor +else + # fix permissions of logs after 0.0.8+0.0.9pre5-1 + if [ "$1" = "configure" ]; then + if dpkg --compare-versions "$2" le "0.0.8+0.0.9pre5-1" ; then + chgrp -R adm /var/log/tor + chmod -R g+rX /var/log/tor + chmod g+s /var/log/tor + fi + fi fi #DEBHELPER# -- cgit v1.2.3