changeset 747:04a5f1cdced7 draft

bugfix (thx Nomius)
author Nick <nick@somerandomnick.ano>
date Thu, 10 Nov 2011 05:51:01 +0000
parents 3b3f6b3d0501
children 40316e86fffe
files scripts/nameserver_autogen/dnsmasq_tld_conffile
diffstat 1 files changed, 7 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- 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