From fb01cfa81aada1a1f2f20dba7c3b55fa0df12fd0 Mon Sep 17 00:00:00 2001
From: Stefan Galinski <stefan@sgalinski.de>
Date: Tue, 6 Feb 2018 22:14:09 +0100
Subject: [PATCH] [BUGFIX] Fix cache rule for the solr extension download

---
 providers/app.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/providers/app.rb b/providers/app.rb
index dca0e1b..3afa50e 100644
--- a/providers/app.rb
+++ b/providers/app.rb
@@ -62,7 +62,7 @@ action :add do
 		timeout 3000000
 		action :run
 		only_if {
-			not ::File.exists?("#{Chef::Config['file_cache_path']}/ext-solr/README.md")
+			not ::File.exists?("#{Chef::Config['file_cache_path']}/ext-solr-#{new_resource.extension}.tgz")
 		}
 
 		code <<-EOF
-- 
GitLab