ud-replicate: now preserve server side modifcation times when rsyncing data
authorPeter Palfrader <peter@palfrader.org>
Thu, 29 Dec 2011 21:06:23 +0000 (22:06 +0100)
committerPeter Palfrader <peter@palfrader.org>
Thu, 29 Dec 2011 21:06:23 +0000 (22:06 +0100)
debian/changelog
ud-replicate

index 4e0a735..6aeaebe 100644 (file)
@@ -9,14 +9,16 @@ userdir-ldap (0.3.XXX) UNRELEASED; urgency=low
     - filter on shadowAccount.
     - fix breaking old ud-generate locks.
   * ud-mailgate: only run ldapmodfiy if we actually have attributes to modify.
-  * ud-replicate: do not hard-code 'debian.org' in the 'write-zonefile
-    debian.org' call, but instead re-use the domain from email-append.
+  * ud-replicate:
+    - do not hard-code 'debian.org' in the 'write-zonefile debian.org' call,
+      but instead re-use the domain from email-append.
+    - now preserve server side modifcation times when rsyncing data.
 
   [ Stephen Gran ]
   * Fix deprecation warnings for sha module by using hashlib module instead
   * ud-fingerserv: update Net::LDAP import
 
- -- Peter Palfrader <weasel@debian.org>  Thu, 29 Dec 2011 21:54:54 +0100
+ -- Peter Palfrader <weasel@debian.org>  Thu, 29 Dec 2011 22:05:22 +0100
 
 userdir-ldap (0.3.79) unstable; urgency=low
 
index 8324a86..fb6834c 100755 (executable)
@@ -74,7 +74,7 @@ if [ -e /var/lib/misc/thishost/dns-zone ]; then
   cp /var/lib/misc/thishost/dns-zone $tempfile2
 fi
 
-rsync ${verbose} --delete-after -e 'ssh -i /etc/ssh/ssh_host_rsa_key -o PreferredAuthentications=publickey' -rp "${udhost}/var/cache/userdir-ldap/hosts/$HOST" .
+rsync ${verbose} --delete-after --times -e 'ssh -i /etc/ssh/ssh_host_rsa_key -o PreferredAuthentications=publickey' -rp "${udhost}/var/cache/userdir-ldap/hosts/$HOST" .
 
 makedb "$HOST/passwd.tdb" -o passwd.db.t
 if [ -s "$HOST/shadow.tdb" ]