X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/45dde9418dd342bb1a632d82559201c0b3becf1a..c783d0a11851850072bcd05d6c87afab99fda211:/cookbooks/mailman/recipes/default.rb?ds=sidebyside diff --git a/cookbooks/mailman/recipes/default.rb b/cookbooks/mailman/recipes/default.rb index 6e53ee8e5..a4d9768ab 100644 --- a/cookbooks/mailman/recipes/default.rb +++ b/cookbooks/mailman/recipes/default.rb @@ -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