Change fix permission for nginx logs.
authorGuo Xiang Tan <tgx_world@hotmail.com>
Fri, 24 Nov 2017 04:07:53 +0000 (12:07 +0800)
committerGuo Xiang Tan <tgx_world@hotmail.com>
Fri, 24 Nov 2017 04:07:53 +0000 (12:07 +0800)
* 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

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