]> git.openstreetmap.org Git - chef.git/commitdiff
Reinstall matomo plugins after a version update
authorTom Hughes <tom@compton.nu>
Fri, 5 Aug 2022 21:38:49 +0000 (22:38 +0100)
committerTom Hughes <tom@compton.nu>
Fri, 5 Aug 2022 21:41:26 +0000 (22:41 +0100)
cookbooks/matomo/recipes/default.rb

index b870cb0ffbee12d49a62434491c0403c8d464b42..d4e4697b16daf8d79ad412dcae7991d4c36c42d8 100644 (file)
@@ -76,6 +76,7 @@ node[:matomo][:plugins].each do |plugin_name, plugin_version|
     overwrite true
     owner "root"
     group "root"
+    subscribes :extract, "archive_file[#{Chef::Config[:file_cache_path]}/matomo-#{version}.zip]", :immediately
     subscribes :extract, "remote_file[#{Chef::Config[:file_cache_path]}/matomo-#{plugin_name}-#{plugin_version}.zip]", :immediately
     notifies :run, "notify_group[matomo-updated]"
   end