Commit adf441e678b689e4da1cfcc74c95e417ef0b32d1

Authored by Athos
2 parents 2a4e2f5d d3e49a24

Merge branch 'cgi-user' into 'master'

Cgi user

Closes #33

See merge request !15
cookbooks/mailman/files/centos/spawn-fcgi
1 SOCKET=/var/run/fcgiwrap.socket 1 SOCKET=/var/run/fcgiwrap.socket
2 -OPTIONS="-u nginx -g apache -s $SOCKET -S -M 0600 -C 32 -F 1 -P /var/run/spawn-fcgi.pid -- /usr/sbin/fcgiwrap" 2 +OPTIONS="-u mailman -g apache -s $SOCKET -S -M 0660 -C 32 -F 1 -P /var/run/spawn-fcgi.pid -- /usr/sbin/fcgiwrap"
cookbooks/mailman/recipes/webui.rb
@@ -36,6 +36,13 @@ cookbook_file '/etc/sysconfig/spawn-fcgi' do @@ -36,6 +36,13 @@ cookbook_file '/etc/sysconfig/spawn-fcgi' do
36 notifies :restart, 'service[spawn-fcgi]' 36 notifies :restart, 'service[spawn-fcgi]'
37 end 37 end
38 38
  39 +group 'apache' do
  40 + action 'manage'
  41 + append true
  42 + members ['nginx']
  43 + notifies :restart, 'service[nginx]'
  44 +end
  45 +
39 service 'spawn-fcgi' do 46 service 'spawn-fcgi' do
40 action [:enable, :start] 47 action [:enable, :start]
41 supports :restart => true 48 supports :restart => true