From 442663084833eb2e92e72133d9bd790e1557d9cd Mon Sep 17 00:00:00 2001 From: Guo Xiang Tan Date: Fri, 24 Nov 2017 12:07:53 +0800 Subject: [PATCH] Change fix permission for nginx logs. * Other services might need to read from the logs and the current permission is alittle too strict. --- image/base/runit-1.d-00-fix-var-logs | 1 + 1 file changed, 1 insertion(+) diff --git a/image/base/runit-1.d-00-fix-var-logs b/image/base/runit-1.d-00-fix-var-logs index c4f6275..ecb49d9 100755 --- a/image/base/runit-1.d-00-fix-var-logs +++ b/image/base/runit-1.d-00-fix-var-logs @@ -1,6 +1,7 @@ #!/bin/bash mkdir -p /var/log/nginx chown -R www-data:www-data /var/log/nginx +chmod -R 644 /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* -- 2.25.1