From 55b662841a69155bc6e129e909556c0eee09e745 Mon Sep 17 00:00:00 2001 From: Stephen Gran Date: Mon, 5 Oct 2009 00:53:47 +0100 Subject: [PATCH] make ud-replicate work slightly more accurately for zones Signed-off-by: Stephen Gran --- ud-replicate | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) 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 -- 2.20.1