# Open output files
my $zonefile = IO::File->new("> include/${zone}.js") || die "$!";
-my $jsonfile = IO::File->new("> json/${zone}.json") || die "$!";
+my $jsonfile = IO::File->new("> json/${zone}.openstreetmap.org.json") || die "$!";
# Output headers
$zonefile->print("var \U${zone}\E_RECORDS = [\n");
{
my $name = $cluster->{name};
- output_server($zonefile, "${name}.${zone}", $cluster);
-
if (@{$cluster->{servers}} > 1)
{
output_server($zonefile, "${name}-%02d.${zone}", $cluster);
}
+ else
+ {
+ output_server($zonefile, "${name}.${zone}", $cluster);
+ }
}
# Output the GeoJSON text