X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/9bedbf10f628d55144c7342cfc9195f5f436e746..241fcb72fc59ac141ed78e05f56b6b3f291da88e:/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 87fd926e3..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 {