From c3ded7220d4cafaa667a270a11fc4c222640673b Mon Sep 17 00:00:00 2001 From: Guo Xiang Tan Date: Mon, 4 Dec 2017 11:55:37 +0800 Subject: [PATCH] Allow nginx folder to be accessible by other services. --- 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 ecb49d9..8e2e9cd 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 655 /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* -- 2.25.1