From: Stephen Gran Date: Sun, 4 Oct 2009 23:53:47 +0000 (+0100) Subject: make ud-replicate work slightly more accurately for zones X-Git-Tag: userdir-ldap-0.3.72~1 X-Git-Url: https://git.adam-barratt.org.uk/?p=mirror%2Fuserdir-ldap.git;a=commitdiff_plain;h=55b662841a69155bc6e129e909556c0eee09e745 make ud-replicate work slightly more accurately for zones Signed-off-by: Stephen Gran --- diff --git a/ud-replicate b/ud-replicate index 86f4c1f..ada301c 100755 --- a/ud-replicate +++ b/ud-replicate @@ -164,18 +164,19 @@ fi rndc_reload=0 if [ -e /var/lib/misc/thishost/dns-sshfp ]; then - if ! cmp -s /var/lib/misc/thishost/dns-sshfp $tempfile; then + if ! cmp -s /var/lib/misc/thishost/dns-sshfp $tempfile2; then + /git/HOOKS/write_zonefile debian.org rndc_reload=1 fi fi -#if [ -e /var/lib/misc/thishost/dns-zone ]; then -# if cmp /var/lib/misc/thishost/dns-zone $tempfile2; then -# rndc_reload=1 -# fi -#fi +if [ -e /var/lib/misc/thishost/dns-zone ]; then + if ! cmp -s /var/lib/misc/thishost/dns-zone $tempfile2; then + /git/HOOKS/write_zonefile debian.net + rndc_reload=1 + fi +fi if [ "${rndc_reload}" -gt 0 ]; then - /git/HOOKS/write_zonefile debian.org rndc reload fi