# HG changeset patch # User heiko # Date 1164840339 0 # Node ID 8fc0ac9cfad14c95e450af52d48f46cad3140053 # Parent 33d2e05c6a9e4af51cbc95dcd7175aceba5a962e bessere ACL-Handhabung diff -r 33d2e05c6a9e -r 8fc0ac9cfad1 debian/changelog --- 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 Sat, 28 Nov 2006 13:40:22 +0100 + -- Heiko Schlittermann Wed Nov 29 23:45:24 CET 2006 ha-sync (0.5-1) testing; urgency=low diff -r 33d2e05c6a9e -r 8fc0ac9cfad1 ha-sync --- 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