]> git.openstreetmap.org Git - chef.git/commitdiff
Stop zip theme being unpacked every time chef runs
authorGuillaume Rischard <git@stereo.lu>
Tue, 23 Apr 2024 15:55:10 +0000 (11:55 -0400)
committerGitHub <noreply@github.com>
Tue, 23 Apr 2024 15:55:10 +0000 (11:55 -0400)
cookbooks/wordpress/resources/theme.rb

index e42b8b0d43da7b4a906d0e1eb80dfb4d274374ef..2c4ceda4e5d1947fb048762512818c8b63ae4415 100644 (file)
@@ -62,10 +62,11 @@ action :create do
 
       archive_file zip_path do
         destination theme_directory
-        action :extract
+        action :nothing
         overwrite true
         group node[:wordpress][:group]
         owner node[:wordpress][:user]
+        subscribes :extract, "remote_file[#{zip_path}]", :immediately
       end
     else
       subversion theme_directory do