From: Rafael dos Santos Silva Date: Mon, 19 Aug 2019 18:17:28 +0000 (-0300) Subject: On Debian rsyslog is running under root X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=4279120a919f5a443c975d6a869fd75f7402453e;p=discourse_docker.git On Debian rsyslog is running under root --- diff --git a/image/base/runit-1.d-00-fix-var-logs b/image/base/runit-1.d-00-fix-var-logs index a762730..c12065f 100755 --- a/image/base/runit-1.d-00-fix-var-logs +++ b/image/base/runit-1.d-00-fix-var-logs @@ -3,6 +3,6 @@ mkdir -p /var/log/nginx chown -R www-data:www-data /var/log/nginx chmod -R 644 /var/log/nginx chmod 755 /var/log/nginx -touch /var/log/syslog && chown -f syslog:adm /var/log/syslog* -touch /var/log/auth.log && chown -f syslog:adm /var/log/auth.log* -touch /var/log/kern.log && chown -f syslog:adm /var/log/kern.log* +touch /var/log/syslog && chown -f root:adm /var/log/syslog* +touch /var/log/auth.log && chown -f root:adm /var/log/auth.log* +touch /var/log/kern.log && chown -f root:adm /var/log/kern.log*