]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/planet/templates/default/apache-latest-planet-filename.erb
Use new style loading for cldr extension
[chef.git] / cookbooks / planet / templates / default / apache-latest-planet-filename.erb
index 87fd926e34b19019b7901008218afe99e1d8a15c..9107436b3d38cbfddfcd0114393c5a059791a222 100644 (file)
@@ -15,9 +15,9 @@ while (my $path = <STDIN>)
 
     my $file = abs_path("/store/planet${path}");
 
-    if ($file && $file =~ m|^/store/planet/| && -f $file)
+    if ($file && $file =~ m|^/store/planet(/.*)$| && -f $file)
     {
-        print "${file}\n";
+        print "$1\n";
     }
     else
     {