[Pkg-sympa-commits] [SCM] sympa Debian packaging branch, master, updated. debian/6.1.4_dfsg-1-24-gddacbfa

Emmanuel Bouthenot kolter at openics.org
Mon Nov 21 00:08:59 UTC 2011


The following commit has been merged in the master branch:
commit 44446964a379d61cf25523cd00c77ddd6f829b9d
Author: Emmanuel Bouthenot <kolter at openics.org>
Date:   Sun Nov 13 20:07:48 2011 +0000

    Some code cleanup in debian/postinst

diff --git a/debian/postinst b/debian/postinst
index a1c77b2..50acc83 100644
--- a/debian/postinst
+++ b/debian/postinst
@@ -301,14 +301,14 @@ chmod 0640 "$conf" "$wwconf"
 # set default permissions for sympa's data directory except static_content
 # which has to be readable by the webserver
 find /var/lib/sympa /var/spool/sympa \
-	-maxdepth 1 -type d -not -name 'static_content' | \
-	xargs chmod 0771
+	-maxdepth 1 -type d -not -name 'static_content' \
+	-exec chmod 0771 {} \;
 
 # It's better to search files and directories with wrong owner/group and fix
 # them instead of recursively doing it, even if it's not needed (see #630384)
 find /var/spool/sympa /var/lib/sympa \
-	-not -user sympa -or -not -group sympa | \
-	xargs chown sympa:sympa
+	-not -user sympa -or -not -group sympa \
+	-exec chown sympa:sympa {} \;
 
 # Fix permissions on MTA tools wrappers
 chmod u+s /usr/lib/sympa/bin/aliaswrapper

-- 
sympa Debian packaging



More information about the Pkg-sympa-commits mailing list