# HG changeset patch # User Nick # Date 1315885998 0 # Node ID bc0c2cfc9921e1813f8c487cf6035315eb9d821c # Parent a4e5033ce156530d3036dbf74904ff3efaff7aa1 d3v1150m471c.ano has no ns directory, dnsmasq zonegen now handles it diff -r a4e5033ce156 -r bc0c2cfc9921 scripts/nameserver_autogen/dnsmasq_tld_conffile --- a/scripts/nameserver_autogen/dnsmasq_tld_conffile Fri Sep 09 01:42:23 2011 +0000 +++ b/scripts/nameserver_autogen/dnsmasq_tld_conffile Tue Sep 13 03:53:18 2011 +0000 @@ -31,9 +31,11 @@ for tld in $($LS db/dom/); do for domain in $($LS db/dom/${tld}/); do - for ns in $($LS db/dom/${tld}/${domain}/ns/); do - STR="server=/${domain}.${tld}/$(scripts/ns2ip -f ${ns})" - echo $STR - done; + if [ -d $($LS db/dom/${tld}/{$domain}/ns/ ]; then + for ns in $($LS db/dom/${tld}/${domain}/ns/); do + STR="server=/${domain}.${tld}/$(scripts/ns2ip -f ${ns})" + echo $STR + done; + fi done; done