diff options
author | Nick <nick@somerandomnick.ano> | 2011-11-10 05:51:01 +0000 |
---|---|---|
committer | Nick <nick@somerandomnick.ano> | 2011-11-10 05:51:01 +0000 |
commit | 4b82c1915075527acbb40719900d775fe53ffe69 (patch) | |
tree | 244e0317ad1e1ad73edfa070a80d3854e8c4f379 | |
parent | 874c32601d7098850d45ec634bfe5091171e6f10 (diff) | |
download | resdb-4b82c1915075527acbb40719900d775fe53ffe69.tar.gz resdb-4b82c1915075527acbb40719900d775fe53ffe69.zip |
bugfix (thx Nomius)
-rwxr-xr-x | scripts/nameserver_autogen/dnsmasq_tld_conffile | 12 |
1 files changed, 7 insertions, 5 deletions
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 |