From 11fe3546a1959c389976c0b2fbb3e2553b6847ce Mon Sep 17 00:00:00 2001 From: Sam Date: Tue, 21 Jun 2016 18:28:18 +1000 Subject: [PATCH] fix permissions on the log folder on boot --- templates/web.template.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/templates/web.template.yml b/templates/web.template.yml index fdd8de8..d5a33a6 100644 --- a/templates/web.template.yml +++ b/templates/web.template.yml @@ -49,6 +49,16 @@ run: # 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/fix-log-permissions + chmod: "+x" + contents: | + #!/bin/bash + # TODO this should be moved into the base image + chown -fR www-data:adm /var/log/nginx + chown -f syslog:syslog /var/log/syslog* + chown -f syslog:syslog /var/log/auth.log* + chown -f syslog:adm /var/log/kern.log* - file: path: /etc/runit/1.d/enable-brotli -- 2.25.1