generate_mirror_map: output region in uppercase
authorMichael Prokop <mika@grml.org>
Wed, 18 May 2022 07:19:06 +0000 (09:19 +0200)
committerMichael Prokop <mika@grml.org>
Wed, 18 May 2022 07:19:06 +0000 (09:19 +0200)
So we can directly use it without our apache configuration,
within RewriteMap servers + https://${servers:%{ENV:GEOIP_COUNTRY_CODE}

bin/generate_mirror_map

index d41107c..ed5b90b 100755 (executable)
@@ -29,8 +29,8 @@ my @regions = keys(%$regions_hash);
 
 foreach my $region (@regions) {
        if (scalar(@{$mirrors->{$region}}) == 0) {
-               printf ("%s %s\n", lc($region), join('|', @{$mirrors->{'DE'}}));
+               printf ("%s %s\n", uc($region), join('|', @{$mirrors->{'DE'}}));
        } else {
-               printf ("%s %s\n", lc($region), join('|', @{$mirrors->{$region}}));
+               printf ("%s %s\n", uc($region), join('|', @{$mirrors->{$region}}));
        }
 }