Allow nginx folder to be accessible by other services.
authorGuo Xiang Tan <tgx_world@hotmail.com>
Mon, 4 Dec 2017 03:55:37 +0000 (11:55 +0800)
committerGuo Xiang Tan <tgx_world@hotmail.com>
Mon, 4 Dec 2017 03:55:54 +0000 (11:55 +0800)
image/base/runit-1.d-00-fix-var-logs

index ecb49d976f62e9b1521bdfd003771b94a0ee4abf..8e2e9cd8ba50bb93a47f1911e4ae88a04dd35644 100755 (executable)
@@ -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*