From: Tom Hughes Date: Thu, 4 Aug 2022 21:10:17 +0000 (+0100) Subject: Use --best for compression X-Git-Url: https://git.openstreetmap.org./chef.git/commitdiff_plain/37c6d41bbade6c3d13c8d0e185475622083cca83 Use --best for compression --- diff --git a/cookbooks/matomo/recipes/default.rb b/cookbooks/matomo/recipes/default.rb index b916e83d7..b870cb0ff 100644 --- a/cookbooks/matomo/recipes/default.rb +++ b/cookbooks/matomo/recipes/default.rb @@ -157,7 +157,7 @@ if File.symlink?("/srv/matomo.openstreetmap.org") execute "/opt/matomo-#{version}/matomo/matomo.br" do action :nothing - command "brotli -k -9 /opt/matomo-#{version}/matomo/matomo.js" + command "brotli --keep --best /opt/matomo-#{version}/matomo/matomo.js" cwd "/opt/matomo-#{version}" user "root" group "root" @@ -166,7 +166,7 @@ if File.symlink?("/srv/matomo.openstreetmap.org") execute "/opt/matomo-#{version}/matomo/matomo.js" do action :nothing - command "gzip -k -9 /opt/matomo-#{version}/matomo/matomo.js" + command "gzip --keep --best /opt/matomo-#{version}/matomo/matomo.js" cwd "/opt/matomo-#{version}" user "root" group "root" @@ -175,7 +175,7 @@ if File.symlink?("/srv/matomo.openstreetmap.org") execute "/opt/matomo-#{version}/matomo/piwik.br" do action :nothing - command "brotli -k -9 /opt/matomo-#{version}/matomo/piwik.js" + command "brotli --keep --best /opt/matomo-#{version}/matomo/piwik.js" cwd "/opt/matomo-#{version}" user "root" group "root" @@ -184,7 +184,7 @@ if File.symlink?("/srv/matomo.openstreetmap.org") execute "/opt/matomo-#{version}/matomo/piwik.js" do action :nothing - command "gzip -k -9 /opt/matomo-#{version}/matomo/piwik.js" + command "gzip --keep --best /opt/matomo-#{version}/matomo/piwik.js" cwd "/opt/matomo-#{version}" user "root" group "root"