diff options
| author | Obee <obee@anomail.ano> | 2011-12-01 04:30:50 +0000 | 
|---|---|---|
| committer | Obee <obee@anomail.ano> | 2011-12-01 04:30:50 +0000 | 
| commit | 9225c2b010f5d7b84e63a772a9679ab8b1a2f3b9 (patch) | |
| tree | 2e0889510daedb2fd2640adbd8339be4126453cb /scripts/nameserver_autogen | |
| parent | cce40b6ef5b27a573147a98d728b8bbd502754c4 (diff) | |
| parent | 84c8ec4218fbf18341cca859ca1c1efe32ec7472 (diff) | |
| download | resdb-9225c2b010f5d7b84e63a772a9679ab8b1a2f3b9.tar.gz resdb-9225c2b010f5d7b84e63a772a9679ab8b1a2f3b9.zip | |
Merge branch 'master' of git://1.0.27.102
Diffstat (limited to 'scripts/nameserver_autogen')
| -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 f155601..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 | 
