# HG changeset patch # User Nick # Date 1320904261 0 # Node ID 04a5f1cdced745cefea3bec7f093018c568eeec0 # Parent 3b3f6b3d0501feff0df7e9daf577bf56d4680217 bugfix (thx Nomius) diff -r 3b3f6b3d0501 -r 04a5f1cdced7 scripts/nameserver_autogen/dnsmasq_tld_conffile --- a/scripts/nameserver_autogen/dnsmasq_tld_conffile Thu Nov 10 05:46:56 2011 +0000 +++ b/scripts/nameserver_autogen/dnsmasq_tld_conffile Thu Nov 10 05:51:01 2011 +0000 @@ -31,11 +31,13 @@ for tld in $($LS db/dom/); do for domain in $($LS db/dom/${tld}/); do - 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; + if [ -d $($LS -d db/dom/${tld}/${domain}/) ]; then + if [ -d $($LS -d 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 fi done; done