bessere ACL-Handhabung
authorheiko
Wed, 29 Nov 2006 22:45:39 +0000
changeset 9 8fc0ac9cfad1
parent 8 33d2e05c6a9e
child 10 188566aa6e3d
bessere ACL-Handhabung
debian/changelog
ha-sync
--- a/debian/changelog	Mon Nov 27 12:31:08 2006 +0000
+++ b/debian/changelog	Wed Nov 29 22:45:39 2006 +0000
@@ -1,8 +1,8 @@
-ha-sync (0.6-1) testing; urgency=low
+ha-sync (0.7-1) testing; urgency=low
 
   * new upstream 
 
- -- Heiko Schlittermann <hs@schlittermann.de>  Sat, 28 Nov 2006 13:40:22 +0100
+ -- Heiko Schlittermann <hs@schlittermann.de> Wed Nov 29 23:45:24 CET 2006
 
 ha-sync (0.5-1) testing; urgency=low
 
--- a/ha-sync	Mon Nov 27 12:31:08 2006 +0000
+++ b/ha-sync	Wed Nov 29 22:45:39 2006 +0000
@@ -68,13 +68,18 @@
 
 	# if there's .acl in the top level dir, we have to apply these
 	# acl!
-	find .$FS -name .acl -print0 | while read -d '' ACL; do
-		dir=$(dirname "$ACL")
-		acl=$(basename "$ACL")
-		cmd="cd '/$dir' && setfacl --restore '$acl'"
-		echo "Processing $ACL"
-		${opt_debug+echo} ${opt_dry+echo} ssh `other` "$cmd"
-	done
+	#find .$FS -name .acl -print0 | while read -d '' ACL; do
+	#	dir=$(dirname "$ACL")
+	#	acl=$(basename "$ACL")
+	#	cmd="cd '/$dir' && setfacl --restore '$acl'"
+	#	echo "Processing $ACL"
+	#	${opt_debug+echo} ${opt_dry+echo} ssh `other` "$cmd"
+	#done
+
+	echo "processing acl..."
+	find ${FS##/} -xdev -depth -not -type l -print0 | xargs -0 getfacl --skip-base \
+		| ssh `other` 'cd / && setfacl --restore -'
+
 
 done