# HG changeset patch # User heiko # Date 1164630668 0 # Node ID 33d2e05c6a9e4af51cbc95dcd7175aceba5a962e # Parent e5342725e14a33520c324999c51fd56bb3917047 acl processing diff -r e5342725e14a -r 33d2e05c6a9e debian/changelog --- 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 Sat, 28 Nov 2006 13:40:22 +0100 + ha-sync (0.5-1) testing; urgency=low * new upstream diff -r e5342725e14a -r 33d2e05c6a9e ha-sync --- 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