From 335b7569b78a979d8f4c3a333c08efcfb32bd05b Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Wed, 10 Aug 2022 22:14:00 +0100 Subject: [PATCH] Allow overwriting when compressing matomo script --- cookbooks/matomo/recipes/default.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cookbooks/matomo/recipes/default.rb b/cookbooks/matomo/recipes/default.rb index 453afc488..e892767d9 100644 --- a/cookbooks/matomo/recipes/default.rb +++ b/cookbooks/matomo/recipes/default.rb @@ -142,7 +142,7 @@ if File.symlink?("/srv/matomo.openstreetmap.org") execute "/opt/matomo-#{version}/matomo/matomo.br" do action :nothing - command "brotli --keep --best /opt/matomo-#{version}/matomo/matomo.js" + command "brotli --keep --force --best /opt/matomo-#{version}/matomo/matomo.js" cwd "/opt/matomo-#{version}" user "root" group "root" @@ -151,7 +151,7 @@ if File.symlink?("/srv/matomo.openstreetmap.org") execute "/opt/matomo-#{version}/matomo/matomo.js" do action :nothing - command "gzip --keep --best /opt/matomo-#{version}/matomo/matomo.js" + command "gzip --keep --force --best /opt/matomo-#{version}/matomo/matomo.js" cwd "/opt/matomo-#{version}" user "root" group "root" @@ -160,7 +160,7 @@ if File.symlink?("/srv/matomo.openstreetmap.org") execute "/opt/matomo-#{version}/matomo/piwik.br" do action :nothing - command "brotli --keep --best /opt/matomo-#{version}/matomo/piwik.js" + command "brotli --keep --force --best /opt/matomo-#{version}/matomo/piwik.js" cwd "/opt/matomo-#{version}" user "root" group "root" @@ -169,7 +169,7 @@ if File.symlink?("/srv/matomo.openstreetmap.org") execute "/opt/matomo-#{version}/matomo/piwik.js" do action :nothing - command "gzip --keep --best /opt/matomo-#{version}/matomo/piwik.js" + command "gzip --keep --force --best /opt/matomo-#{version}/matomo/piwik.js" cwd "/opt/matomo-#{version}" user "root" group "root" -- 2.39.5