]> git.openstreetmap.org Git - chef.git/commitdiff
Return webroot relative paths
authorTom Hughes <tom@compton.nu>
Wed, 20 Feb 2019 22:45:58 +0000 (22:45 +0000)
committerTom Hughes <tom@compton.nu>
Wed, 20 Feb 2019 22:45:58 +0000 (22:45 +0000)
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}");
 
 
     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
     {
     }
     else
     {