From: Grant Slater Date: Sun, 10 Mar 2024 20:20:20 +0000 (+0000) Subject: mailman: automate year match code X-Git-Url: https://git.openstreetmap.org./chef.git/commitdiff_plain/38e044cfdfe1d36cfdddce66325776b7c477d6f6 mailman: automate year match code --- diff --git a/cookbooks/mailman/templates/default/apache.erb b/cookbooks/mailman/templates/default/apache.erb index 6ad616686..42cdf2092 100644 --- a/cookbooks/mailman/templates/default/apache.erb +++ b/cookbooks/mailman/templates/default/apache.erb @@ -84,7 +84,8 @@ ScriptAlias /subscribe /usr/lib/cgi-bin/mailman/subscribe ScriptAlias /mailman/ /usr/lib/cgi-bin/mailman/ - + <% last_year = year = Time.now.year - 1 %> + )"> ExpiresActive On ExpiresDefault "access plus 180 days"