]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/planet/templates/default/apache-latest-planet-filename.erb
Enable promscale
[chef.git] / cookbooks / planet / templates / default / apache-latest-planet-filename.erb
index 967fa41e5bc00bb3109e5928d46e7ccb6e1c4e8e..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
     {