summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorNick <nick@somerandomnick.ano>2011-11-10 05:51:01 +0000
committerNick <nick@somerandomnick.ano>2011-11-10 05:51:01 +0000
commit4b82c1915075527acbb40719900d775fe53ffe69 (patch)
tree244e0317ad1e1ad73edfa070a80d3854e8c4f379 /scripts
parent874c32601d7098850d45ec634bfe5091171e6f10 (diff)
downloadresdb-4b82c1915075527acbb40719900d775fe53ffe69.tar.gz
resdb-4b82c1915075527acbb40719900d775fe53ffe69.zip
bugfix (thx Nomius)
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/nameserver_autogen/dnsmasq_tld_conffile12
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