Permalink
Browse files

[COOK-4176] - Ensure creation of `:file_cache_path`

Signed-off-by: Sean OMeara <someara@opscode.com>
  • Loading branch information...
JasonGiedymin authored and someara committed Feb 24, 2014
1 parent 7cec3f9 commit 0aca56ad2b40609ccb2d430f30634255bc4a158b
Showing with 8 additions and 0 deletions.
  1. +8 −0 recipes/default.rb
View
@@ -35,6 +35,14 @@
package_name = ::File.basename(omnibus_package)
package_local_path = "#{Chef::Config[:file_cache_path]}/#{package_name}"
+# Ensure :file_cache_path exists
+directory Chef::Config[:file_cache_path] do
+ owner "root"
+ group "root"
+ recursive true
+ action :create
+end
+
# omnibus_package is remote (ie a URI) let's download it
if ::URI.parse(omnibus_package).absolute?
remote_file package_local_path do

0 comments on commit 0aca56a

Please sign in to comment.