acl processing
authorheiko
Mon, 27 Nov 2006 12:31:08 +0000
changeset 8 33d2e05c6a9e
parent 7 e5342725e14a
child 9 8fc0ac9cfad1
acl processing
debian/changelog
ha-sync
--- a/debian/changelog	Mon Nov 27 10:28:37 2006 +0000
+++ b/debian/changelog	Mon Nov 27 12:31:08 2006 +0000
@@ -1,3 +1,9 @@
+ha-sync (0.6-1) testing; urgency=low
+
+  * new upstream 
+
+ -- Heiko Schlittermann <hs@schlittermann.de>  Sat, 28 Nov 2006 13:40:22 +0100
+
 ha-sync (0.5-1) testing; urgency=low
 
   * new upstream 
--- a/ha-sync	Mon Nov 27 10:28:37 2006 +0000
+++ b/ha-sync	Mon Nov 27 12:31:08 2006 +0000
@@ -65,6 +65,17 @@
 		--exclude-from $extra \
 		--exclude-from /etc/ha-sync/exclude \
 		--del -Ravx .$FS `other`:/
+
+	# 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
+
 done
 
 test "$opt_dry" || ${opt_debug+echo} ssh -i $SSHID `other` update-grub