X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=ud-replicate;h=4f7609b70eeae4624916a79bae87471ad384c689;hb=8d2ecf180bc525c59b2ddd40d36daa833623e0b0;hp=86f4c1fcbc1808d49bad820cfc78d518abb02877;hpb=716ab67eda191413ce2c25ee23499945b506861f;p=mirror%2Fuserdir-ldap.git diff --git a/ud-replicate b/ud-replicate index 86f4c1f..4f7609b 100755 --- a/ud-replicate +++ b/ud-replicate @@ -165,17 +165,18 @@ fi rndc_reload=0 if [ -e /var/lib/misc/thishost/dns-sshfp ]; then if ! cmp -s /var/lib/misc/thishost/dns-sshfp $tempfile; 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