From 4b82c1915075527acbb40719900d775fe53ffe69 Mon Sep 17 00:00:00 2001 From: Nick Date: Thu, 10 Nov 2011 05:51:01 +0000 Subject: bugfix (thx Nomius) --- scripts/nameserver_autogen/dnsmasq_tld_conffile | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'scripts/nameserver_autogen') diff --git a/scripts/nameserver_autogen/dnsmasq_tld_conffile b/scripts/nameserver_autogen/dnsmasq_tld_conffile index b418ac1..97aa10b 100755 --- a/scripts/nameserver_autogen/dnsmasq_tld_conffile +++ b/scripts/nameserver_autogen/dnsmasq_tld_conffile @@ -31,11 +31,13 @@ echo 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 -- cgit v1.2.3