diff options
author | Peter Palfrader <peter@palfrader.org> | 2009-05-31 10:41:08 +0000 |
---|---|---|
committer | Peter Palfrader <peter@palfrader.org> | 2009-05-31 10:41:08 +0000 |
commit | aa278d3181c50df98b7ab0802794ed78616427f0 (patch) | |
tree | 924205eb9f2876d810a5d71fb35cc9361e1143bf /debian/tor.postinst | |
parent | 77bc85f047ca6f3558193b224992f326e21d7369 (diff) | |
download | tor-aa278d3181c50df98b7ab0802794ed78616427f0.tar.gz tor-aa278d3181c50df98b7ab0802794ed78616427f0.zip |
Remove /var/run/tor from package.
Stop shipping /var/run/tor in the package. Only clean up permissions of
/var/run/tor in postinst if the directory actually exists.
Diffstat (limited to 'debian/tor.postinst')
-rw-r--r-- | debian/tor.postinst | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/debian/tor.postinst b/debian/tor.postinst index 29d0984298..b9ac61596f 100644 --- a/debian/tor.postinst +++ b/debian/tor.postinst @@ -43,9 +43,11 @@ find /var/lib/tor \( \( ! -user debian-tor \) -o \( ! -group debian-tor \) \) -p find /var/lib/tor -type d -print0 | xargs -0 --no-run-if-empty chmod 02700 find /var/lib/tor -type f -print0 | xargs -0 --no-run-if-empty chmod 00600 -find /var/run/tor \( \( ! -user debian-tor \) -o \( ! -group debian-tor \) \) -print0 | xargs -0 --no-run-if-empty chown debian-tor:debian-tor -find /var/run/tor -type d -print0 | xargs -0 --no-run-if-empty chmod 02750 -find /var/run/tor -type f -print0 | xargs -0 --no-run-if-empty chmod 00600 +if [ -e /var/run/tor ]; then + find /var/run/tor \( \( ! -user debian-tor \) -o \( ! -group debian-tor \) \) -print0 | xargs -0 --no-run-if-empty chown debian-tor:debian-tor + find /var/run/tor -type d -print0 | xargs -0 --no-run-if-empty chmod 02750 + find /var/run/tor -type f -print0 | xargs -0 --no-run-if-empty chmod 00600 +fi find /var/log/tor \( \( ! -user debian-tor \) -o \( ! -group adm \) \) -print0 | xargs -0 --no-run-if-empty chown debian-tor:adm find /var/log/tor -type d -print0 | xargs -0 --no-run-if-empty chmod 02750 |