summaryrefslogtreecommitdiff
path: root/debian
diff options
context:
space:
mode:
authorPeter Palfrader <peter@palfrader.org>2004-11-12 16:48:27 +0000
committerPeter Palfrader <peter@palfrader.org>2004-11-12 16:48:27 +0000
commitb7131c2260cc32925d01aae70275cc2bf155fade (patch)
tree9817b467b30ca86b78cb30fb835a23665e5df77d /debian
parent2e0db9b0f9c2d09b8df209f54035477115867979 (diff)
downloadtor-b7131c2260cc32925d01aae70275cc2bf155fade.tar.gz
tor-b7131c2260cc32925d01aae70275cc2bf155fade.zip
Make logs readable by the system administrators (group adm)
svn:r2810
Diffstat (limited to 'debian')
-rw-r--r--debian/changelog1
-rw-r--r--debian/tor.postinst12
2 files changed, 13 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog
index 532918ca97..802c13c68d 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -2,6 +2,7 @@ tor (0.0.8+0.0.9pre5-2) unreleased; urgency=low
* unreleased.
* Symlink tor(8) manpage to torrc(5).
+ * Make logs readable by the system administrators (group adm).
-- Peter Palfrader <weasel@debian.org> Fri, 12 Nov 2004 17:43:06 +0100
diff --git a/debian/tor.postinst b/debian/tor.postinst
index cd2e91beeb..3224a32607 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#