diff options
author | Peter Palfrader <peter@palfrader.org> | 2008-02-03 17:18:35 +0000 |
---|---|---|
committer | Peter Palfrader <peter@palfrader.org> | 2008-02-03 17:18:35 +0000 |
commit | a06b6c7a616a96ab24185a7a592d14add7e286be (patch) | |
tree | a1d5a05d72b13ebb5fb11a248f0e7c683ccaa0f0 /debian/tor.postinst | |
parent | 583bb548b069c43be09eda7feec320d9cbd0b447 (diff) | |
download | tor-a06b6c7a616a96ab24185a7a592d14add7e286be.tar.gz tor-a06b6c7a616a96ab24185a7a592d14add7e286be.zip |
Fix postinst find command that chowns stuff to the right user. Find does weird things in the presence of !.
svn:r13364
Diffstat (limited to 'debian/tor.postinst')
-rw-r--r-- | debian/tor.postinst | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/debian/tor.postinst b/debian/tor.postinst index 70b14eec9a..7d607b6e68 100644 --- a/debian/tor.postinst +++ b/debian/tor.postinst @@ -39,15 +39,15 @@ for i in lib run log; do fi done -find /var/lib/tor ! -user debian-tor -o ! -group debian-tor -print0 | xargs -0 --no-run-if-empty chown debian-tor:debian-tor +find /var/lib/tor \( \( ! -user debian-tor \) -o \( ! -group debian-tor \) \) -print0 | xargs -0 --no-run-if-empty chown debian-tor:debian-tor 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 \( \( ! -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 -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 \( \( ! -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 find /var/log/tor -type f -print0 | xargs -0 --no-run-if-empty chmod 00640 |