From a166e6396d2cc5d5d843075ef0e676e7d0998227 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Wed, 20 Feb 2019 22:45:58 +0000 Subject: [PATCH] Return webroot relative paths --- .../templates/default/apache-latest-planet-filename.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 { -- 2.39.5