From: Tom Hughes Date: Fri, 5 Aug 2022 21:38:49 +0000 (+0100) Subject: Reinstall matomo plugins after a version update X-Git-Url: https://git.openstreetmap.org./chef.git/commitdiff_plain/7c9a614d51617d1d88e685d0e9ea333c0c9de9b2 Reinstall matomo plugins after a version update --- diff --git a/cookbooks/matomo/recipes/default.rb b/cookbooks/matomo/recipes/default.rb index b870cb0ff..d4e4697b1 100644 --- a/cookbooks/matomo/recipes/default.rb +++ b/cookbooks/matomo/recipes/default.rb @@ -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