From 11884bac8969f95fd39bf34ae1c758377ab42e5e Mon Sep 17 00:00:00 2001 From: Nick Date: Tue, 13 Sep 2011 03:53:18 +0000 Subject: d3v1150m471c.ano has no ns directory, dnsmasq zonegen now handles it --- scripts/nameserver_autogen/dnsmasq_tld_conffile | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'scripts') diff --git a/scripts/nameserver_autogen/dnsmasq_tld_conffile b/scripts/nameserver_autogen/dnsmasq_tld_conffile index 20eefd1..f155601 100755 --- a/scripts/nameserver_autogen/dnsmasq_tld_conffile +++ b/scripts/nameserver_autogen/dnsmasq_tld_conffile @@ -31,9 +31,11 @@ echo for tld in $($LS db/dom/); do for domain in $($LS db/dom/${tld}/); do - for ns in $($LS db/dom/${tld}/${domain}/ns/); do - STR="server=/${domain}.${tld}/$(scripts/ns2ip -f ${ns})" - echo $STR - done; + 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; + fi done; done -- cgit v1.2.3