From 317e1a70c15350740587ecb09dd405c9a501f309 Mon Sep 17 00:00:00 2001 From: Guo Xiang Tan Date: Tue, 26 Dec 2017 10:29:35 +0800 Subject: [PATCH] Fix nginx wasn't able to rotate logs due to incorrect folder permission. --- image/base/runit-1.d-00-fix-var-logs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/image/base/runit-1.d-00-fix-var-logs b/image/base/runit-1.d-00-fix-var-logs index ca3567d..a762730 100755 --- a/image/base/runit-1.d-00-fix-var-logs +++ b/image/base/runit-1.d-00-fix-var-logs @@ -2,7 +2,7 @@ mkdir -p /var/log/nginx chown -R www-data:www-data /var/log/nginx chmod -R 644 /var/log/nginx -chmod 655 /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* -- 2.25.1