X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/993d0e674e027829dcf21005b38b9a9a1790a6ce..41b4f8ccdff661e5463961da893ef91866e9f74c:/cookbooks/planet/templates/default/apache-latest-planet-filename.erb?ds=sidebyside diff --git a/cookbooks/planet/templates/default/apache-latest-planet-filename.erb b/cookbooks/planet/templates/default/apache-latest-planet-filename.erb index 967fa41e5..9107436b3 100644 --- a/cookbooks/planet/templates/default/apache-latest-planet-filename.erb +++ b/cookbooks/planet/templates/default/apache-latest-planet-filename.erb @@ -15,9 +15,9 @@ while (my $path = ) 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 {