summaryrefslogtreecommitdiff
path: root/debian/tor.postinst
diff options
context:
space:
mode:
authorPeter Palfrader <peter@palfrader.org>2016-08-04 10:29:57 +0200
committerPeter Palfrader <peter@palfrader.org>2016-08-04 10:29:57 +0200
commita55886272fff17109007c7240c2680bdfcb42877 (patch)
tree43bf4516892d72f09e26dd021a4056e4178d4d73 /debian/tor.postinst
parentdb5e92529a893a4b4f0a02501988c541d4ca2bfe (diff)
No longer create /var/run/tor in postinst -- it is created when services start
Diffstat (limited to 'debian/tor.postinst')
-rw-r--r--debian/tor.postinst6
1 files changed, 0 insertions, 6 deletions
diff --git a/debian/tor.postinst b/debian/tor.postinst
index 5ce8181f72..93540ad96c 100644
--- a/debian/tor.postinst
+++ b/debian/tor.postinst
@@ -43,12 +43,6 @@ which restorecon >/dev/null 2>&1 && restorecon /var/lib/tor
chown debian-tor:debian-tor /var/lib/tor
chmod 02700 /var/lib/tor
-if [ -e /var/run/tor ]; then
- which restorecon >/dev/null 2>&1 && restorecon /var/run/tor
- chown debian-tor:debian-tor /var/run/tor
- chmod 02750 /var/run/tor
-fi
-
which restorecon >/dev/null 2>&1 && restorecon /var/log/tor
chown debian-tor:adm /var/log/tor
chmod 02750 /var/log/tor