X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/1269b473221f4b6c5f7beee400092c9620fc79fb..cac6ace6749429cdc77d0f1c0bac4890838d0861:/cookbooks/mailman/recipes/default.rb diff --git a/cookbooks/mailman/recipes/default.rb b/cookbooks/mailman/recipes/default.rb index ab70a0528..a4d9768ab 100644 --- a/cookbooks/mailman/recipes/default.rb +++ b/cookbooks/mailman/recipes/default.rb @@ -1,8 +1,8 @@ # -# Cookbook Name:: mailman +# Cookbook:: mailman # Recipe:: default # -# Copyright 2011, OpenStreetMap Foundation +# Copyright:: 2011, OpenStreetMap Foundation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -33,6 +33,13 @@ template "/etc/mailman/mm_cfg.py" do notifies :restart, "service[mailman]" end +execute "newlist" do + command "newlist -q mailman mailman@example.com mailman" + user "root" + group "root" + not_if { ::File.exist?("/var/lib/mailman/lists/mailman/") } +end + service "mailman" do action [:enable, :start] supports :restart => true, :reload => true