]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/apache/providers/module.rb
Modernise squid_fragment LWRP
[chef.git] / cookbooks / apache / providers / module.rb
index c5efdd2c58d938101443b85f17cafb0f3511d35b..d3f069b7fb77a4550a5ed18a2e51d73331a5f8b9 100644 (file)
@@ -24,16 +24,14 @@ end
 use_inline_resources
 
 action :install do
-  unless installed?
-    package package_name
-  end
+  package package_name unless installed?
 
   if new_resource.conf # ~FC023
     template available_name("conf") do
       source new_resource.conf
       owner "root"
       group "root"
-      mode 0644
+      mode 0o644
       variables new_resource.variables
     end
   end