File tree Expand file tree Collapse file tree 4 files changed +24
-1
lines changed Expand file tree Collapse file tree 4 files changed +24
-1
lines changed Original file line number Diff line number Diff line change @@ -108,15 +108,16 @@ RUN rm -fr /usr/share/man &&\
108108# this can probably be done, but I worry that people changing PG locales will have issues
109109# cd /usr/share/locale && rm -fr `ls -d */ | grep -v en`
110110
111-
112111RUN mkdir -p /etc/runit/3.d
113112
114113ADD runit-1 /etc/runit/1
115114ADD runit-1.d-cleanup-pids /etc/runit/1.d/cleanup-pids
116115ADD runit-1.d-anacron /etc/runit/1.d/anacron
116+ ADD runit-1.d-00-fix-var-logs /etc/runit/1.d/00-fix-var-logs
117117ADD runit-2 /etc/runit/2
118118ADD runit-3 /etc/runit/3
119119ADD boot /sbin/boot
120120
121121ADD cron /etc/service/cron/run
122122ADD rsyslog /etc/service/rsyslog/run
123+ ADD cron.d-anacron /etc/cron.d/anacron
Original file line number Diff line number Diff line change 1+ # this avoids using invoke-rc.d which is bust in image
2+
3+ SHELL=/bin/sh
4+ PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
5+
6+ 30 7 * * * root /usr/sbin/anacron -s >/dev/null
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+ mkdir -p /var/log/nginx
3+ chown -R www-data:www-data /var/log/nginx
4+ chown www-data:www-data /var/log/nginx
5+ chown -f syslog:adm /var/log/syslog*
6+ chown -f syslog:adm /var/log/auth.log*
7+ chown -f syslog:adm /var/log/kern.log*
Original file line number Diff line number Diff line change 3939 - exec : /usr/local/bin/ruby -e 'if ENV["DISCOURSE_SMTP_ADDRESS"] == "smtp.example.com"; puts "Aborting! Mail is not configured!"; exit 1; end'
4040 - exec : /usr/local/bin/ruby -e 'if ENV["DISCOURSE_HOSTNAME"] == "discourse.example.com"; puts "Aborting! Domain is not configured!"; exit 1; end'
4141 - exec : chown -R discourse /home/discourse
42+ # TODO: move to base image (anacron can not be fired up using rc.d)
43+ - exec : rm -f /etc/cron.d/anacron
44+ - file :
45+ path : /etc/cron.d/anacron
46+ contents : |
47+ SHELL=/bin/sh
48+ PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
49+
50+ 30 7 * * * root /usr/sbin/anacron -s >/dev/null
4251 - file :
4352 path : /etc/runit/1.d/copy-env
4453 chmod : " +x"
You can’t perform that action at this time.
0 commit comments