# find DISCOURSE_ env vars, strip the leader, lowercase the key
/usr/local/bin/ruby -e 'ENV.each{|k,v| puts "#{$1.downcase} = #{v}" if k =~ /^DISCOURSE_(.*)/}' > $conf
+ - file:
+ path: /etc/runit/1.d/ensure-web-nginx-read
+ chmod: "+x"
+ contents: |
+ #!/bin/bash
+ chgrp -R www-data /var/log/nginx
+ chgrp www-data /var/log/nginx
- file:
path: /etc/service/unicorn/run
chmod: "+x"
compress
delaycompress
notifempty
- create 0640 www-data adm
+ create 0640 www-data www-data
sharedscripts
postrotate
sv 1 nginx