]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Remove /var/run/tor from package.
authorPeter Palfrader <peter@palfrader.org>
Sun, 31 May 2009 10:41:08 +0000 (10:41 +0000)
committerPeter Palfrader <peter@palfrader.org>
Sun, 31 May 2009 10:41:08 +0000 (10:41 +0000)
Stop shipping /var/run/tor in the package.  Only clean up permissions of
/var/run/tor in postinst if the directory actually exists.

debian/changelog
debian/tor.dirs
debian/tor.postinst

index 42c7c47eccea0e0703c5373f3b48f5dd088f10f2..9e7a9622db9e5ffacb306e9a2ad2ecf28a9ca951 100644 (file)
@@ -3,8 +3,11 @@ tor (0.2.1.15-rc-X) XXperimental; urgency=low
   * No longer inform the user if/when we re-create the /var/run/tor
     directory in the init script.  With /var/run on tmpfs this is
     completely normal now so our message was just noise.
+  * Stop shipping /var/run/tor in the package.
+  * Only clean up permissions of /var/run/tor in postinst if the
+    directory actually exists.
 
- -- Peter Palfrader <weasel@debian.org>  Sun, 31 May 2009 10:37:22 +0000
+ -- Peter Palfrader <weasel@debian.org>  Sun, 31 May 2009 10:40:29 +0000
 
 tor (0.2.1.15-rc-1) experimental; urgency=low
 
index ca9f98af2daf49f6ddd7296e02ff97f018345779..72d914a77b3b4efa5ee1b71fa90ee35403f55d12 100644 (file)
@@ -1,7 +1,6 @@
 etc/tor
 var/lib/tor
 var/log/tor
-var/run/tor
 usr/share/lintian/overrides
 usr/bin
 usr/sbin
index 29d0984298be1535339d8e55004c966812897efa..b9ac61596ffa19f01a1753d1d011125ced510a2f 100644 (file)
@@ -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